diff options
author | Spencer T Brody <spencer@mongodb.com> | 2017-04-21 14:52:54 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2017-05-04 17:46:40 -0400 |
commit | 5a247871d2dc7d1a46f4741e21c0edd8fc6abea1 (patch) | |
tree | 89d5c8bd8d8a98ca5f2d29725b1455c572bf4e06 /jstests | |
parent | d6524fe73938fbce2c9c429886e425363aa40a9c (diff) | |
download | mongo-5a247871d2dc7d1a46f4741e21c0edd8fc6abea1.tar.gz |
SERVER-28191 Wait for a healthy primary in replmonitor_bad_seed.js test before issuing a write
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/replmonitor_bad_seed.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/replmonitor_bad_seed.js b/jstests/sharding/replmonitor_bad_seed.js index f6a699a368c..f8b6bf74b21 100644 --- a/jstests/sharding/replmonitor_bad_seed.js +++ b/jstests/sharding/replmonitor_bad_seed.js @@ -41,6 +41,7 @@ // Verify that the replSetMonitor can reach the restarted set awaitRSClientHosts(st.s0, replTest.nodes, {ok: true}); + replTest.awaitNodesAgreeOnPrimary(); assert.writeOK(st.s0.getDB('test').user.insert({x: 1})); |