diff --git a/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostIntegTests.java b/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostIntegTests.java index f53fdd8fd0dc2..b28491f138bc7 100644 --- a/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostIntegTests.java +++ b/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostIntegTests.java @@ -283,7 +283,7 @@ public void testRequestResetAndAbort() throws Exception { httpGet.abort(); Future future = client.execute(httpHost, httpGet, null); try { - future.get(); + future.get(5, TimeUnit.SECONDS); fail("expected cancellation exception"); } catch (CancellationException e) { // expected @@ -298,7 +298,7 @@ public void testRequestResetAndAbort() throws Exception { assertTrue(httpGet.isAborted()); try { assertTrue(future.isDone()); - future.get(); + future.get(5, TimeUnit.SECONDS); } catch (CancellationException e) { // expected sometimes - if the future was cancelled before executing successfully } @@ -308,7 +308,7 @@ public void testRequestResetAndAbort() throws Exception { assertFalse(httpGet.isAborted()); Future future = client.execute(httpHost, httpGet, null); assertFalse(httpGet.isAborted()); - assertEquals(200, future.get().getStatusLine().getStatusCode()); + assertEquals(200, future.get(5, TimeUnit.SECONDS).getStatusLine().getStatusCode()); assertFalse(future.isCancelled()); } } diff --git a/muted-tests.yml b/muted-tests.yml index b22345195c7a4..f279f7d8db9f4 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -1,7 +1,4 @@ tests: -- class: "org.elasticsearch.client.RestClientSingleHostIntegTests" - issue: "https://github.com/elastic/elasticsearch/issues/102717" - method: "testRequestResetAndAbort" - class: org.elasticsearch.packaging.test.PackagesSecurityAutoConfigurationTests method: test20SecurityNotAutoConfiguredOnReInstallation issue: https://github.com/elastic/elasticsearch/issues/112635