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 (#15959) (#15962)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
(cherry picked from commit eb5b703)
  • Loading branch information
reta committed Sep 18, 2024
1 parent bfdc30c commit 79867fb
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 79867fb

Please sign in to comment.