Skip to content

Commit 9145945

Browse files
committed
SERVER-22501 Wait until all nodes catch up before test in priority_takeover_cascading_priorities.js
1 parent 6935119 commit 9145945

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jstests/replsets/priority_takeover_cascading_priorities.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
};
3333

3434
waitForPrimary(0);
35+
// Wait until all nodes get the "no-op" of "new primary" after initial sync.
36+
waitUntilAllNodesCaughtUp(replSet.nodes);
3537
replSet.stop(0);
3638

3739
waitForPrimary(1);

0 commit comments

Comments
 (0)