We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e734b30 commit d731559Copy full SHA for d731559
1 file changed
src/test/java/org/apache/commons/io/input/ReadAheadInputStreamTest.java
@@ -96,7 +96,9 @@ void testClosePlusExecutorService() throws IOException {
96
try (ReadAheadInputStream rais = ReadAheadInputStream.builder().setInputStream(inputStream).setExecutorService(externalExecutor).get()) {
97
assertEquals('1', rais.read());
98
}
99
+ Thread.yield();
100
// The underlying FileInputStream should be closed since ReadAheadInputStream is a FilterInputStream.
101
+ assertThrows(IOException.class, inputStream::available);
102
assertThrows(IOException.class, inputStream::read);
103
// The caller remains responsible for shutting down the executor.
104
} finally {
0 commit comments