diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2013-07-15 14:30:17 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2013-07-22 10:43:40 -0400 |
commit | 27c4e7fbd2ef6eeb04dccd1bcdecdb21b00522d1 (patch) | |
tree | f129314545bfcc0a5c64fb2701baa2fc4f1628a2 /jstests/replsets/sync2.js | |
parent | 9bf70757db09b3a7166440c508bf798d50bd212a (diff) | |
download | mongo-27c4e7fbd2ef6eeb04dccd1bcdecdb21b00522d1.tar.gz |
Revert "Revert "SERVER-6071 use command on local.slaves instead of cursor""
This reverts commit 6486b4035c5ac52679eb3e1a034c925ccdd20deb.
Diffstat (limited to 'jstests/replsets/sync2.js')
-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 57577c6c46b..6890d85dc98 100644 --- a/jstests/replsets/sync2.js +++ b/jstests/replsets/sync2.js @@ -35,9 +35,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 @@ -45,9 +44,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(); |