sharanggupta opened a new pull request, #910:
URL: https://github.com/apache/httpcomponents-client/pull/910

   `testCompressionIOExceptionLeavesOutputStreamOpen` only checked that the 
output stream stays open inside the catch block, so if `writeTo` swallowed the 
`IOException` nothing was checked and the test still passed. This asserts the 
exception with `assertThrows` and then verifies the stream was not closed; if 
`writeTo` caught the exception and closed the stream, the old test would pass 
and the new one fails.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to