Skip to content

Commit 74f79f4

Browse files
committed
SOLR-17871: fix error-prone warning
1 parent 95f410d commit 74f79f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solr/solrj/src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ public void testIdleTimeoutWithHttpClient() throws Exception {
712712

713713
// too little time to succeed
714714
int packets = LuceneTestCase.RANDOM_MULTIPLIER == 1 ? 10 : 80; // 60 crosses a default timeout
715-
long timeToSendMs = packets * BasicHttpSolrClientTest.SlowStreamServlet.PACKET_MS;
715+
long timeToSendMs = (long) packets * BasicHttpSolrClientTest.SlowStreamServlet.PACKET_MS;
716716
QueryRequest req = new QueryRequest(SolrParams.of("count", "" + packets));
717717
req.setResponseParser(new InputStreamResponseParser(FILE_STREAM));
718718
assertIsTimeout(expectThrows(SolrServerException.class, () -> oldClient.request(req)));

0 commit comments

Comments
 (0)