Fix flaky test

This commit is contained in:
Joakim Erdfelt 2023-03-15 11:31:25 -05:00
parent 9594469160
commit 89a519b082
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 2 additions and 1 deletions

View File

@ -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