From b3cfede1e8999482e805037788bbac79024143d1 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 23 Apr 2009 13:05:03 -0400 Subject: [PATCH] fix test timing MINOR --- jstests/repl/pair2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jstests/repl/pair2.js b/jstests/repl/pair2.js index 51838bbd245..5da8d28928e 100644 --- a/jstests/repl/pair2.js +++ b/jstests/repl/pair2.js @@ -46,6 +46,9 @@ doTest = function( signal ) { rz.save( { _id: new ObjectId(), i: i, b: big } ); l = startMongoProgram( "mongod", "--port", ports[ 1 ], "--dbpath", "/data/db/" + baseName + "-left", "--pairwith", "127.0.0.1:" + ports[ 2 ], "127.0.0.1:" + ports[ 0 ], "--oplogSize", "1", "--nohttpinterface" ); + + sleep( 15000 ); + l.setSlaveOk(); assert.soon( function() { ret = l.getDB( "admin" ).runCommand( { "resync" : 1 } );