From da799306a8c471b02ab4bd8e6e0185933952a7a9 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 17 Jan 2019 11:51:17 +0100 Subject: [PATCH] Decreased time out in test Relates to #37378 --- .../action/admin/cluster/state/ClusterStateApiTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/action/admin/cluster/state/ClusterStateApiTests.java b/server/src/test/java/org/elasticsearch/action/admin/cluster/state/ClusterStateApiTests.java index fb823d3657e..e061e7a08dd 100644 --- a/server/src/test/java/org/elasticsearch/action/admin/cluster/state/ClusterStateApiTests.java +++ b/server/src/test/java/org/elasticsearch/action/admin/cluster/state/ClusterStateApiTests.java @@ -62,7 +62,7 @@ public class ClusterStateApiTests extends ESSingleNodeTestCase { // Verify that the timed out property has been set" metadataVersion = response.getState().getMetaData().version(); clusterStateRequest.waitForMetaDataVersion(metadataVersion + 1); - clusterStateRequest.waitForTimeout(TimeValue.timeValueSeconds(1)); // Fail fast + clusterStateRequest.waitForTimeout(TimeValue.timeValueMillis(500)); // Fail fast ActionFuture future3 = client().admin().cluster().state(clusterStateRequest); assertBusy(() -> { assertThat(future3.isDone(), is(true));