Skip to content

Commit 4a05466

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 7acf0bb commit 4a05466

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.Map;
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;
@@ -483,8 +484,7 @@ protected void startWatcher() throws Exception {
483484
}
484485

485486
throw new AssertionError("unexpected state, retrying with next run");
486-
});
487-
487+
}, 30, TimeUnit.SECONDS);
488488
}
489489

490490
protected void ensureLicenseEnabled() throws Exception {

0 commit comments

Comments
 (0)