We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2c172 commit 4b02e84Copy full SHA for 4b02e84
client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostIntegTests.java
@@ -295,11 +295,10 @@ public void testRequestResetAndAbort() throws Exception {
295
httpGet.abort();
296
assertTrue(httpGet.isAborted());
297
try {
298
- assertTrue(future.isCancelled());
+ assertTrue(future.isDone());
299
future.get();
300
- throw new AssertionError("exception should have been thrown");
301
} catch(CancellationException e) {
302
- //expected
+ //expected sometimes - if the future was cancelled before executing successfully
303
}
304
305
{
0 commit comments