Increase Timeout in ClusterDisruptionIT.testRestartNodeWhileIndexing (#55877) (#55880)

The test failed in #55869 but the `docId` was never stuck, it just moved slowly upwards.
=> increasing to timeout.

Closes #55869
This commit is contained in:
Armin Braun 2020-04-29 06:47:00 +02:00 committed by GitHub
parent 8a662c7e62
commit b96db2ee2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -489,10 +489,10 @@ public class ClusterDisruptionIT extends AbstractDisruptionTestCase {
threads[i].start(); threads[i].start();
} }
ensureGreen(index); ensureGreen(index);
assertBusy(() -> assertThat(docID.get(), greaterThanOrEqualTo(100))); assertBusy(() -> assertThat(docID.get(), greaterThanOrEqualTo(100)), 1L, TimeUnit.MINUTES);
internalCluster().restartRandomDataNode(new InternalTestCluster.RestartCallback()); internalCluster().restartRandomDataNode(new InternalTestCluster.RestartCallback());
ensureGreen(index); ensureGreen(index);
assertBusy(() -> assertThat(docID.get(), greaterThanOrEqualTo(200))); assertBusy(() -> assertThat(docID.get(), greaterThanOrEqualTo(200)), 1L, TimeUnit.MINUTES);
stopped.set(true); stopped.set(true);
for (Thread thread : threads) { for (Thread thread : threads) {
thread.join(); thread.join();