This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 74f79f44323 SOLR-17871: fix error-prone warning
74f79f44323 is described below

commit 74f79f443235c689146fd4e011d3a93e00ba6681
Author: David Smiley <[email protected]>
AuthorDate: Tue Aug 26 00:08:39 2025 -0400

    SOLR-17871: fix error-prone warning
---
 .../src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java
 
b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java
index 745d82f7383..96458b275a3 100644
--- 
a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java
+++ 
b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java
@@ -712,7 +712,7 @@ public class Http2SolrClientTest extends 
HttpSolrClientTestBase {
 
       // too little time to succeed
       int packets = LuceneTestCase.RANDOM_MULTIPLIER == 1 ? 10 : 80; // 60 
crosses a default timeout
-      long timeToSendMs = packets * 
BasicHttpSolrClientTest.SlowStreamServlet.PACKET_MS;
+      long timeToSendMs = (long) packets * 
BasicHttpSolrClientTest.SlowStreamServlet.PACKET_MS;
       QueryRequest req = new QueryRequest(SolrParams.of("count", "" + 
packets));
       req.setResponseParser(new InputStreamResponseParser(FILE_STREAM));
       assertIsTimeout(expectThrows(SolrServerException.class, () -> 
oldClient.request(req)));

Reply via email to