github-advanced-security[bot] commented on code in PR #16974:
URL: https://github.com/apache/druid/pull/16974#discussion_r1755651427


##########
processing/src/test/java/org/apache/druid/data/input/impl/HttpEntityTest.java:
##########
@@ -96,8 +100,61 @@
       server.start();
 
       URI url = new URI("http://"; + server.getAddress().getHostName() + ":" + 
server.getAddress().getPort() + "/test");
-      inputStream = HttpEntity.openInputStream(url, "", null, 0);
-      inputStreamPartial = HttpEntity.openInputStream(url, "", null, 5);
+      inputStream = HttpEntity.openInputStream(url, "", null, 0, 
Collections.emptyMap());
+      inputStreamPartial = HttpEntity.openInputStream(url, "", null, 5, 
Collections.emptyMap());
+      inputStream.skip(5);

Review Comment:
   ## Ignored error status of call
   
   Method testOpenInputStream ignores exceptional return value of 
InputStream.skip.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/4013)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to