diff options
author | Antonin Kral <a.kral@bobek.cz> | 2010-12-10 13:05:34 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2010-12-10 13:05:34 +0100 |
commit | ed4a804c027562e1bf6a0f45dae7326198c29f8e (patch) | |
tree | 9d04736132d5421497a80619e30d4c2e03e76728 /jstests/repl/mastermaster1.js | |
parent | e598e7ada36302f35a0da8ae0c63c34b51b6a720 (diff) | |
download | mongodb-ed4a804c027562e1bf6a0f45dae7326198c29f8e.tar.gz |
Imported Upstream version 1.6.5
Diffstat (limited to 'jstests/repl/mastermaster1.js')
-rw-r--r-- | jstests/repl/mastermaster1.js | 8 |
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" ) |