diff options
author | Kristina Chodorow <kristina@10gen.com> | 2010-11-13 16:16:12 -0500 |
---|---|---|
committer | Kristina Chodorow <kristina@10gen.com> | 2010-11-13 16:16:12 -0500 |
commit | 64298fd32068b3382bb2852b70b620cd0a7c978c (patch) | |
tree | df052faa99b24d33ff4a459e3d5078c39d509a91 /jstests/replsets/initial_sync1.js | |
parent | 1a4326a49d7f75ffacda357fa7c5660070dbfe53 (diff) | |
download | mongo-64298fd32068b3382bb2852b70b620cd0a7c978c.tar.gz |
fix rs test
Diffstat (limited to 'jstests/replsets/initial_sync1.js')
-rw-r--r-- | jstests/replsets/initial_sync1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync1.js b/jstests/replsets/initial_sync1.js index 93288d3cea8..25c3cdca4fa 100644 --- a/jstests/replsets/initial_sync1.js +++ b/jstests/replsets/initial_sync1.js @@ -109,8 +109,8 @@ reconnect(slave1); wait(function() { var status = admin_s1.runCommand({replSetGetStatus:1}); printjson(status); - return status.members[1].state == 2 || - status.members[1].state == 1; + return status.members && + status.members[1].state == 2 || status.members[1].state == 1; }); |