Decreased time out in test

Relates to #37378
This commit is contained in:
Martijn van Groningen 2019-01-17 11:51:17 +01:00
parent 676e1b1a13
commit da799306a8
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 1 deletions

View File

@ -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<ClusterStateResponse> future3 = client().admin().cluster().state(clusterStateRequest);
assertBusy(() -> {
assertThat(future3.isDone(), is(true));