summaryrefslogtreecommitdiff
path: root/jstests/replsets/stepdown_long_wait_time.js
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-12-02 15:43:13 -0500
committerEric Milkie <milkie@10gen.com>2014-12-03 12:58:24 -0500
commit5598c216ca28234735999ca25b3f6f9a030f51e6 (patch)
treef3acde451094af8436a321e8a8780439e2998353 /jstests/replsets/stepdown_long_wait_time.js
parent225aa52bd22a54d06cc090e7cd4b0fd4312213b2 (diff)
downloadmongo-5598c216ca28234735999ca25b3f6f9a030f51e6.tar.gz
SERVER-16391 archor primary in replset tests, or make agnostic to primary node
Diffstat (limited to 'jstests/replsets/stepdown_long_wait_time.js')
-rw-r--r--jstests/replsets/stepdown_long_wait_time.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/stepdown_long_wait_time.js b/jstests/replsets/stepdown_long_wait_time.js
index 27493d55173..6ca307cc8b9 100644
--- a/jstests/replsets/stepdown_long_wait_time.js
+++ b/jstests/replsets/stepdown_long_wait_time.js
@@ -23,6 +23,8 @@
replSet.bridge();
replSet.partition(1,0);
replSet.partition(1,2);
+
+ replSet.waitForState(replSet.nodes[0], replSet.PRIMARY, 60 * 1000);
var primary = replSet.getPrimary();
assert.eq(primary.host, nodes[0], "primary assumed to be node 0");