summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2016-02-05 17:30:25 -0500
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2016-02-08 17:53:59 -0500
commit9145945c9311f6070b97ee9b8443ef6ec35274d4 (patch)
tree9314f2c4d0b2e3b953060c65f64a587236bfa741
parent6935119d85848bde5b189c2c0ccf49b1ce10f0ed (diff)
downloadmongo-9145945c9311f6070b97ee9b8443ef6ec35274d4.tar.gz
SERVER-22501 Wait until all nodes catch up before test in priority_takeover_cascading_priorities.js
-rw-r--r--jstests/replsets/priority_takeover_cascading_priorities.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/priority_takeover_cascading_priorities.js b/jstests/replsets/priority_takeover_cascading_priorities.js
index b17cf0de073..f2dc98490f4 100644
--- a/jstests/replsets/priority_takeover_cascading_priorities.js
+++ b/jstests/replsets/priority_takeover_cascading_priorities.js
@@ -32,6 +32,8 @@
};
waitForPrimary(0);
+ // Wait until all nodes get the "no-op" of "new primary" after initial sync.
+ waitUntilAllNodesCaughtUp(replSet.nodes);
replSet.stop(0);
waitForPrimary(1);