Skip to content

Commit

Permalink
Add ThrottledInputStreamTest.testCloseHandleIOException()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 14, 2024
1 parent 4e8c2df commit c73545a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public void testCalSleepTimeMs() {
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());
Expand Down

0 comments on commit c73545a

Please sign in to comment.