summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorMatt Dannenberg <matt.dannenberg@10gen.com>2013-06-29 21:58:07 -0400
committerMatt Dannenberg <matt.dannenberg@10gen.com>2013-06-29 22:32:38 -0400
commit83ecb9775b7997dd5115c53f6ea30d2e368a4244 (patch)
tree51f3a6cc6664bf9601f0bef9247bbf08643c7391 /jstests/replsets
parentbabd275f88181c3f2cd29585816aab24bc4b421c (diff)
downloadmongo-83ecb9775b7997dd5115c53f6ea30d2e368a4244.tar.gz
SERVER-6071 use command on local.slaves instead of cursor
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/sync2.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/jstests/replsets/sync2.js b/jstests/replsets/sync2.js
index 258cfd3ee12..397680a725f 100644
--- a/jstests/replsets/sync2.js
+++ b/jstests/replsets/sync2.js
@@ -51,9 +51,8 @@ replTest.partition(4,3);
jsTestLog("Checking that ops still replicate correctly");
master.getDB("foo").bar.insert({x:1});
-replTest.awaitReplication();
-var result = master.getDB("admin").runCommand({getLastError:1,w:5,wtimeout:1000});
+var result = master.getDB("admin").runCommand({getLastError:1,w:5,wtimeout:30000});
assert.eq(null, result.err, tojson(result));
// 4 is connected to 3
@@ -61,9 +60,8 @@ replTest.partition(4,2);
replTest.unPartition(4,3);
master.getDB("foo").bar.insert({x:1});
-replTest.awaitReplication();
-result = master.getDB("admin").runCommand({getLastError:1,w:5,wtimeout:1000});
+result = master.getDB("admin").runCommand({getLastError:1,w:5,wtimeout:30000});
assert.eq(null, result.err, tojson(result));
-replTest.stopSet(); \ No newline at end of file
+replTest.stopSet();