summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync1.js
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-07-14 10:34:52 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2014-07-15 06:47:53 -0400
commita78c439ba94e08ab6079e5575f1959c39c9beb87 (patch)
tree0e48dea953271efe548eea7e6d36c20ef731fe1f /jstests/replsets/initial_sync1.js
parent249c0a50179067c856b4bdf178446449617dab63 (diff)
downloadmongo-a78c439ba94e08ab6079e5575f1959c39c9beb87.tar.gz
SERVER-14458 de-race-conditioning tests found during patch build of hybridReplicationCoordinator
Diffstat (limited to 'jstests/replsets/initial_sync1.js')
-rw-r--r--jstests/replsets/initial_sync1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync1.js b/jstests/replsets/initial_sync1.js
index 205d0b7531a..34e1e2d923e 100644
--- a/jstests/replsets/initial_sync1.js
+++ b/jstests/replsets/initial_sync1.js
@@ -114,8 +114,8 @@ reconnect(slave1);
wait(function() {
var status = admin_s1.runCommand({replSetGetStatus:1});
printjson(status);
- return status.ok == 1 && status.members &&
- status.members[1].state == 2 || status.members[1].state == 1;
+ return status.ok === 1 && status.members && status.members.length >= 2 &&
+ (status.members[1].state === 2 || status.members[1].state === 1);
});