diff options
-rw-r--r-- | jstests/replsets/stepdown.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/stepdown.js b/jstests/replsets/stepdown.js index 38408d27d11..0cc8d2b198e 100644 --- a/jstests/replsets/stepdown.js +++ b/jstests/replsets/stepdown.js @@ -32,6 +32,7 @@ var replTest = new ReplSetTest({ }); var nodes = replTest.startSet(); replTest.initiate(); +replTest.waitForState(nodes[0], replTest.PRIMARY, 60 * 1000); var master = replTest.getMaster(); // do a write @@ -45,7 +46,7 @@ replTest.liveNodes.slaves.forEach(function(slave) { printjson(assert.commandWorked(slave.getDB("admin").runCommand({fsync : 1, lock : 1}))); }); -print("\nwaiting 11ish seconds"); +print("\nwaiting several seconds before stepdown"); sleep(2000); |