test: after first elected master node has been stopped assert that watcher is started and only running once.

Original commit: elastic/x-pack-elasticsearch@e193b80215
This commit is contained in:
Martijn van Groningen 2015-05-07 00:54:44 +02:00
parent 5e7ef773b3
commit 34a0de4b38
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ public class NoMasterNodeTests extends AbstractWatcherIntegrationTests {
// We still have 2 master node, we should recover from this failure:
internalTestCluster().stopCurrentMasterNode();
ensureWatcherStarted(false);
ensureWatcherOnlyRunningOnce();
assertWatchWithMinimumPerformedActionsCount("_watch_id", 2, false);
// Stop the elected master, no new master will be elected b/c of m_m_n is set to 2