This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit c73545aa9fc379336721cda906d9c52418fcba44 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jul 14 10:04:26 2024 -0400 Add ThrottledInputStreamTest.testCloseHandleIOException() --- .../java/org/apache/commons/io/input/ThrottledInputStreamTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/apache/commons/io/input/ThrottledInputStreamTest.java b/src/test/java/org/apache/commons/io/input/ThrottledInputStreamTest.java index 0478b5811..fc63fef92 100644 --- a/src/test/java/org/apache/commons/io/input/ThrottledInputStreamTest.java +++ b/src/test/java/org/apache/commons/io/input/ThrottledInputStreamTest.java @@ -55,6 +55,11 @@ public class ThrottledInputStreamTest extends ProxyInputStreamTest<ThrottledInpu assertEquals(0, ThrottledInputStream.toSleepMillis(1, 2, 1_000)); } + @Test + public void testCloseHandleIOException() throws IOException { + ProxyInputStreamTest.testCloseHandleIOException(ThrottledInputStream.builder()); + } + @Override protected void testEos(final ThrottledInputStream inputStream) { assertEquals(3, inputStream.getByteCount());