mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
fix test race condition
This commit is contained in:
parent
86bfa3c1c8
commit
817c2a3028
@ -17,8 +17,7 @@ c.drop()
|
||||
assert.eq( 0 , c.count() , "after drop" )
|
||||
|
||||
t.runTool( "import" , "--file" , t.extFile , "-d" , t.baseName , "-c" , "foo" , "--type" , "csv" , "-f" , "a,b,c" );
|
||||
assert.soon( "c.findOne()" , "no data after sleep" );
|
||||
assert.eq( 2 , c.count() , "after restore 2" );
|
||||
assert.soon( "2 == c.count()" , "restore 2" );
|
||||
|
||||
a = c.find().sort( { a : 1 } ).toArray();
|
||||
delete a[0]._id
|
||||
|
Loading…
Reference in New Issue
Block a user