diff options
author | Kristina Chodorow <kristina@10gen.com> | 2010-11-10 19:14:05 -0500 |
---|---|---|
committer | Kristina Chodorow <kristina@10gen.com> | 2010-11-10 19:14:54 -0500 |
commit | c9e24c3b67c7bd3ba224df49047a007351881b57 (patch) | |
tree | 1b303c6394459923ef081c49b7e623f79be71e56 /jstests/replsets/initial_sync1.js | |
parent | af8370b1e2ff5681858b855f0cb816e9197b1230 (diff) | |
download | mongo-c9e24c3b67c7bd3ba224df49047a007351881b57.tar.gz |
rs test fixes
Diffstat (limited to 'jstests/replsets/initial_sync1.js')
-rw-r--r-- | jstests/replsets/initial_sync1.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync1.js b/jstests/replsets/initial_sync1.js index 7450e77b837..13a95812255 100644 --- a/jstests/replsets/initial_sync1.js +++ b/jstests/replsets/initial_sync1.js @@ -94,9 +94,11 @@ replTest.stop(1); print("8. Eventually it should become a secondary"); +print("if initial sync has started, this will cause it to fail and sleep for 5 minutes"); +sleep(5*3600); wait(function() { var status = admin_s2.runCommand({replSetGetStatus:1}); - printjson(status); + occasionally(function() { printjson(status); }); return status.members[2].state == 2; }); @@ -107,7 +109,8 @@ reconnect(slave1); wait(function() { var status = admin_s1.runCommand({replSetGetStatus:1}); printjson(status); - return status.members[1].state == 2; + return status.members[1].state == 2 || + status.members[1].state == 1; }); |