Skip to content

Commit

Permalink
Fix flaky terminaton conditions for org.opensearch.rest.ReactorNetty4…
Browse files Browse the repository at this point in the history
…StreamingStressIT.testCloseClientStreamingRequest test case (opensearch-project#15959)

Signed-off-by: Andriy Redko <[email protected]>
(cherry picked from commit eb5b703)
  • Loading branch information
reta committed Sep 17, 2024
1 parent bfdc30c commit 8310c23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.junit.After;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.io.UncheckedIOException;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -75,7 +76,7 @@ public void testCloseClientStreamingRequest() throws Exception {
}
})
.then(() -> scheduler.advanceTimeBy(delay))
.expectErrorMatches(t -> t instanceof ConnectionClosedException)
.expectErrorMatches(t -> t instanceof InterruptedIOException || t instanceof ConnectionClosedException)
.verify();
}
}

0 comments on commit 8310c23

Please sign in to comment.