summaryrefslogtreecommitdiff
path: root/jstests/multiVersion
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-12-11 09:40:10 -0500
committermatt dannenberg <matt.dannenberg@10gen.com>2014-12-11 12:50:44 -0500
commitab066385f193b51e5ae6835ecbffffd78956d02f (patch)
treebb3a12d7c1fdbdf88ab9ff1a631b7af4b8700e5b /jstests/multiVersion
parent42ee03e14b90b8ca0b77f8618742e4a86d2eb51c (diff)
downloadmongo-ab066385f193b51e5ae6835ecbffffd78956d02f.tar.gz
SERVER-16511 improve stability of multiVersion/w_majority_change.js
Diffstat (limited to 'jstests/multiVersion')
-rw-r--r--jstests/multiVersion/w_majority_change.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/multiVersion/w_majority_change.js b/jstests/multiVersion/w_majority_change.js
index 739bc8e5f21..12ded450c6a 100644
--- a/jstests/multiVersion/w_majority_change.js
+++ b/jstests/multiVersion/w_majority_change.js
@@ -49,6 +49,7 @@ load("jstests/replsets/rslib.js");
replTest.stop(1);
assert.writeOK(primary.getDB(name).foo.insert({x: 3}, writeConcern));
replTest.restart(1);
+ replTest.waitForState(nodes[1], replTest.SECONDARY);
// reconfig such that a 2.6 node (node 2) will be primary
config.version++;
@@ -141,6 +142,7 @@ load("jstests/replsets/rslib.js");
assert.writeOK(primary.getDB(name).foo.insert({x: 12}, writeConcern));
// take down one voting node. fails because there are insufficient nodes
replTest.stop(3);
+ replTest.waitForState(nodes[3], replTest.DOWN);
assert.writeError(primary.getDB(name).foo.insert({x: 13}, writeConcern));
// bring up both non-voting nodes and take down a voting one
// passes because only number of nodes matters in 2.6, not voting like in 2.8