summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2017-04-21 14:52:54 -0400
committerSpencer T Brody <spencer@mongodb.com>2017-05-04 17:46:40 -0400
commit5a247871d2dc7d1a46f4741e21c0edd8fc6abea1 (patch)
tree89d5c8bd8d8a98ca5f2d29725b1455c572bf4e06 /jstests
parentd6524fe73938fbce2c9c429886e425363aa40a9c (diff)
downloadmongo-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.js1
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}));