Fix flaky test
This commit is contained in:
parent
9594469160
commit
89a519b082
|
@ -528,7 +528,8 @@ public class HttpClientStreamTest extends AbstractTest
|
||||||
|
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
|
|
||||||
assertThrows(AsynchronousCloseException.class, input::read);
|
IOException ioException = assertThrows(IOException.class, input::read);
|
||||||
|
assertTrue(ioException instanceof AsynchronousCloseException || ioException.getCause() instanceof AsynchronousCloseException);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
|
|
Loading…
Reference in New Issue