diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2015-12-31 10:20:46 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2015-12-31 10:22:29 -0500 |
commit | 42161c26220fcd650fd9cd87ea7d94ca8b2b7913 (patch) | |
tree | 890d7b58d032e4589db02946c63287c3090d714a /jstests/noPassthroughWithMongod/remove9.js | |
parent | 0543286571ae6df875b2cb23eb549bb14a8ca7c2 (diff) | |
download | mongo-42161c26220fcd650fd9cd87ea7d94ca8b2b7913.tar.gz |
SERVER-20519 Set random seed, assert if seed not set and random function is invoked.
Diffstat (limited to 'jstests/noPassthroughWithMongod/remove9.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/remove9.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/remove9.js b/jstests/noPassthroughWithMongod/remove9.js index 7492e36c5b9..3135514e4dc 100644 --- a/jstests/noPassthroughWithMongod/remove9.js +++ b/jstests/noPassthroughWithMongod/remove9.js @@ -4,6 +4,7 @@ t.drop(); js = "while( 1 ) { for( i = 0; i < 10000; ++i ) { db.jstests_remove9.save( {i:i} ); } db.jstests_remove9.remove( {i: {$gte:0} } ); }"; pid = startMongoProgramNoConnect( "mongo" , "--eval" , js , db ? db.getMongo().host : null ); +Random.setRandomSeed(); for( var i = 0; i < 10000; ++i ) { assert.writeOK(t.remove( { i: Random.randInt( 10000 )} )); } |