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 and dk2k committed Oct 16, 2024
1 parent c79e2f8 commit 6ba7bcc
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 6ba7bcc

Please sign in to comment.