summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristina Chodorow <k@ubuntu.(none)>2010-08-02 18:14:04 -0400
committerKristina Chodorow <k@ubuntu.(none)>2010-08-02 18:14:04 -0400
commit07a26b5dfa916518727ba7c539dff1357743a7b3 (patch)
tree643f1892da70909afa2781b2270af5c293b05361
parenta02aa2b76dabdf6de397fabb2731871822e36c44 (diff)
downloadmongo-07a26b5dfa916518727ba7c539dff1357743a7b3.tar.gz
rs test fixed to pass on slow machines
-rw-r--r--jstests/replsets/sync1.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/replsets/sync1.js b/jstests/replsets/sync1.js
index 2255ca07cd6..2d04141aea6 100644
--- a/jstests/replsets/sync1.js
+++ b/jstests/replsets/sync1.js
@@ -56,11 +56,19 @@ doTest = function (signal) {
dbs[0].bar.insert({ x: "foo" + i, y: "bar" + i, z: i, w: "biz baz bar boo" });
}
+ var status;
+ do {
+ sleep(1000);
+ status = dbs[0].getSisterDB("admin").runCommand({replSetGetStatus : 1});
+ } while(status.members[1].state != 2 && status.members[2].state != 2);
+
print("\nsync1.js ********************************************************************** part 6");
dbs[0].getSisterDB("admin").runCommand({ replSetTest: 1, blind: true });
print("\nsync1.js ********************************************************************** part 7");
+ sleep(5000);
+
// yay! there are out-of-date nodes
var max1;
var max2;