summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-03-24 11:42:21 -0400
committerAaron <aaron@10gen.com>2009-03-24 11:42:21 -0400
commit8a54574b76b081437e796cb06ddcaf9581d89c6e (patch)
treefdcbd4fa7f9960522d08e2e33e945a7f4930e374
parentcd7831f6c436bc5369ee364162f4d0d3b9dbb208 (diff)
downloadmongo-8a54574b76b081437e796cb06ddcaf9581d89c6e.tar.gz
Adjust timing, attempt to fix intermittent test failure
-rw-r--r--jstests/repl/pair2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/repl/pair2.js b/jstests/repl/pair2.js
index b4494e814d9..443dbb99bd5 100644
--- a/jstests/repl/pair2.js
+++ b/jstests/repl/pair2.js
@@ -33,6 +33,7 @@ doTest = function( signal ) {
rz = r.getDB( baseName ).z
rz.save( { _id: new ObjectId() } );
+ sleep( 5000 );
soonCount( 1 );
assert.eq( 0, l.getDB( "admin" ).runCommand( { "resync" : 1 } ).ok );
@@ -46,8 +47,7 @@ doTest = function( signal ) {
l.setSlaveOk();
assert.soon( function() { return 1 == l.getDB( "admin" ).runCommand( { "resync" : 1 } ).ok; } );
- sleep( 3000 );
-
+ sleep( 8000 );
soonCount( 1001 );
lz = l.getDB( baseName ).z
assert.eq( 1, lz.find( { i: 0 } ).count() );