Skip to content

Commit 283d1bb

Browse files
committed
Watcher: Give test a little more time
Changes watcher's integration tests to wait 30 seconds when starting watcher rather than 10 seconds because this build failed when starting took 12 seconds: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.3+periodic/222/console
1 parent 3004b9e commit 283d1bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/watcher/src/test/java/org/elasticsearch/xpack/watcher/test/AbstractWatcherIntegrationTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
import java.util.List;
7474
import java.util.Locale;
7575
import java.util.Set;
76+
import java.util.concurrent.TimeUnit;
7677
import java.util.concurrent.atomic.AtomicReference;
7778
import java.util.function.Consumer;
7879
import java.util.stream.Collectors;
@@ -477,8 +478,7 @@ protected void startWatcher() throws Exception {
477478
}
478479

479480
throw new AssertionError("unexpected state, retrying with next run");
480-
});
481-
481+
}, 30, TimeUnit.SECONDS);
482482
}
483483

484484
protected void ensureLicenseEnabled() throws Exception {

0 commit comments

Comments
 (0)