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]>
  • Loading branch information
reta authored Sep 17, 2024
1 parent 8347d0e commit eb5b703
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package org.opensearch.rest;

import org.apache.hc.core5.http.ConnectionClosedException;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
import org.opensearch.client.StreamingRequest;
Expand Down Expand Up @@ -75,7 +76,7 @@ public void testCloseClientStreamingRequest() throws Exception {
}
})
.then(() -> scheduler.advanceTimeBy(delay))
.expectErrorMatches(t -> t instanceof InterruptedIOException)
.expectErrorMatches(t -> t instanceof InterruptedIOException || t instanceof ConnectionClosedException)
.verify();
}
}

0 comments on commit eb5b703

Please sign in to comment.