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

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


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

commit 3a3e6b2515fb5d449774a163306dfc3f636db90c
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 7efd7e40fba..59ca9e173c8 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
@@ -675,7 +675,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