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:
parent
5e7ef773b3
commit
34a0de4b38
|
@ -155,6 +155,8 @@ public class NoMasterNodeTests extends AbstractWatcherIntegrationTests {
|
||||||
|
|
||||||
// We still have 2 master node, we should recover from this failure:
|
// We still have 2 master node, we should recover from this failure:
|
||||||
internalTestCluster().stopCurrentMasterNode();
|
internalTestCluster().stopCurrentMasterNode();
|
||||||
|
ensureWatcherStarted(false);
|
||||||
|
ensureWatcherOnlyRunningOnce();
|
||||||
assertWatchWithMinimumPerformedActionsCount("_watch_id", 2, false);
|
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
|
// Stop the elected master, no new master will be elected b/c of m_m_n is set to 2
|
||||||
|
|
Loading…
Reference in New Issue