summaryrefslogtreecommitdiff
path: root/jstests/repl/mastermaster1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/repl/mastermaster1.js')
-rw-r--r--jstests/repl/mastermaster1.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/repl/mastermaster1.js b/jstests/repl/mastermaster1.js
index d0fcec3..9f9334b 100644
--- a/jstests/repl/mastermaster1.js
+++ b/jstests/repl/mastermaster1.js
@@ -16,9 +16,13 @@ ldb = left.getDB( "test" )
rdb = right.getDB( "test" )
ldb.foo.insert( { _id : 1 , x : "eliot" } )
-ldb.runCommand( { getlasterror : 1 , w : 2 } )
+var result = ldb.runCommand( { getlasterror : 1 , w : 2 , wtimeout : 20000 } );
+printjson(result);
rdb.foo.insert( { _id : 2 , x : "sara" } )
-rdb.runCommand( { getlasterror : 1 , w : 2 } )
+result = rdb.runCommand( { getlasterror : 1 , w : 2 , wtimeout : 20000 } )
+printjson(result);
+
+print( "check 3" )
assert.eq( 2 , ldb.foo.count() , "B1" )
assert.eq( 2 , rdb.foo.count() , "B2" )