diff options
-rw-r--r-- | jstests/fsync2.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jstests/fsync2.js b/jstests/fsync2.js index 6e97ec84304..309eaea8200 100644 --- a/jstests/fsync2.js +++ b/jstests/fsync2.js @@ -8,7 +8,10 @@ d = db.getSisterDB( "admin" ); assert.commandWorked( d.runCommand( {fsync:1, lock: 1 } ) ); -assert.eq(1, db.fsync2.count()); +for ( i=0; i<200; i++) { + assert.eq(1, db.fsync2.count()); + sleep(1); +} db.fsync2.save( {x:1} ); @@ -19,6 +22,8 @@ m = new Mongo( db.getMongo().host ); assert( m.getDB("admin").$cmd.sys.unlock.findOne().ok ); +db.getLastError(); + assert.eq( 2, db.fsync2.count() ); -}
\ No newline at end of file +} |