diff options
author | Matt Dannenberg <matt.dannenberg@10gen.com> | 2013-06-29 21:58:07 -0400 |
---|---|---|
committer | Matt Dannenberg <matt.dannenberg@10gen.com> | 2013-06-29 22:32:38 -0400 |
commit | 83ecb9775b7997dd5115c53f6ea30d2e368a4244 (patch) | |
tree | 51f3a6cc6664bf9601f0bef9247bbf08643c7391 /jstests/replsets | |
parent | babd275f88181c3f2cd29585816aab24bc4b421c (diff) | |
download | mongo-83ecb9775b7997dd5115c53f6ea30d2e368a4244.tar.gz |
SERVER-6071 use command on local.slaves instead of cursor
Diffstat (limited to 'jstests/replsets')
-rw-r--r-- | jstests/replsets/sync2.js | 8 |
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(); |