Skip to content

Commit c73545a

Browse files
committed
Add ThrottledInputStreamTest.testCloseHandleIOException()
1 parent 4e8c2df commit c73545a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/test/java/org/apache/commons/io/input/ThrottledInputStreamTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ public void testCalSleepTimeMs() {
5555
assertEquals(0, ThrottledInputStream.toSleepMillis(1, 2, 1_000));
5656
}
5757

58+
@Test
59+
public void testCloseHandleIOException() throws IOException {
60+
ProxyInputStreamTest.testCloseHandleIOException(ThrottledInputStream.builder());
61+
}
62+
5863
@Override
5964
protected void testEos(final ThrottledInputStream inputStream) {
6065
assertEquals(3, inputStream.getByteCount());

0 commit comments

Comments
 (0)