mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Test: if in starting state, wait until started state has been reached
Original commit: elastic/x-pack-elasticsearch@12e8b9da69
This commit is contained in:
parent
175423b984
commit
901d2c0984
@ -168,6 +168,9 @@ public abstract class AbstractWatcherIntegrationTests extends ElasticsearchInteg
|
||||
if (response.getWatchServiceState() == WatchService.State.STOPPED) {
|
||||
logger.info("[{}#{}]: starting watcher", getTestClass().getSimpleName(), getTestName());
|
||||
startWatcher();
|
||||
} else if (response.getWatchServiceState() == WatchService.State.STARTING) {
|
||||
logger.info("[{}#{}]: watcher is starting, waiting for it to get in a started state", getTestClass().getSimpleName(), getTestName());
|
||||
ensureWatcherStarted(false);
|
||||
} else {
|
||||
logger.info("[{}#{}]: not starting watcher, because watcher is in state [{}]", getTestClass().getSimpleName(), getTestName(), response.getWatchServiceState());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user