diff options
author | Benety Goh <benety@mongodb.com> | 2016-04-21 15:16:43 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-04-21 15:16:43 -0400 |
commit | 218ded6589ec11ad157812e369c8785e20670f6a (patch) | |
tree | f581a65cae0553f2563c36e1646b8c71dfd31342 /jstests | |
parent | f27b0cac4869fa506c6ed6f0dfc885b9edcd765a (diff) | |
download | mongo-218ded6589ec11ad157812e369c8785e20670f6a.tar.gz |
SERVER-23583 replsetprio1.js should wait for replication before stopping highest priority node
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/replsetprio1.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/replsetprio1.js b/jstests/replsets/replsetprio1.js index fd47de0570a..16beb851b81 100644 --- a/jstests/replsets/replsetprio1.js +++ b/jstests/replsets/replsetprio1.js @@ -21,6 +21,9 @@ // here) replTest.waitForState(nodes[1], ReplSetTest.State.SECONDARY, 60000); + // Wait for election oplog entry to be replicated, to ensure 0 will vote for 1 after stopping 2. + replTest.awaitReplication(); + // kill 2, 1 should take over replTest.stop(2); |