diff options
Diffstat (limited to 'jstests/sharding/sync1.js')
-rw-r--r-- | jstests/sharding/sync1.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/jstests/sharding/sync1.js b/jstests/sharding/sync1.js index e649387..2c1a8f7 100644 --- a/jstests/sharding/sync1.js +++ b/jstests/sharding/sync1.js @@ -13,14 +13,23 @@ assert.eq( 2 , t.find().count() , "A4" ); test.checkHashes( "test" , "A3" ); test.tempKill(); -assert.throws( function(){ t.save( { x : 3 } ) } , "B1" ) +assert.throws( function(){ t.save( { x : 3 } ) } , null , "B1" ) assert.eq( 2 , t.find().itcount() , "B2" ); test.tempStart(); test.checkHashes( "test" , "B3" ); - assert.eq( 2 , t.find().itcount() , "C1" ); -t.remove( { x : 1 } ) +assert.soon( function(){ + try { + t.remove( { x : 1 } ) + return true; + } + catch ( e ){ + print( e ); + } + return false; +} ) +t.find().forEach( printjson ) assert.eq( 1 , t.find().itcount() , "C2" ); test.stop(); |