diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-02-04 12:29:01 -0500 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-02-09 13:41:02 -0500 |
commit | 3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch) | |
tree | 788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/bulk_insert.js | |
parent | 985e2a0be95709ac064c57f0a9bb385a55937285 (diff) | |
download | mongo-3bed8596d18275d1561e4f44f1f0bd72c1e038f1.tar.gz |
SERVER-22341 fix jslint errors in jstests/core with eslint --fix
Conflicts:
jstests/core/count_hint.js
Diffstat (limited to 'jstests/core/bulk_insert.js')
-rw-r--r-- | jstests/core/bulk_insert.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/jstests/core/bulk_insert.js b/jstests/core/bulk_insert.js index e2e625e0a3c..a946cba8ddb 100644 --- a/jstests/core/bulk_insert.js +++ b/jstests/core/bulk_insert.js @@ -1,24 +1,24 @@ // Tests bulk insert of docs from the shell -var coll = db.bulkInsertTest -coll.drop() +var coll = db.bulkInsertTest; +coll.drop(); var seed = new Date().getTime(); Random.srand( seed ); print("Seed for randomized test is " + seed); -var bulkSize = Math.floor( Random.rand() * 200 ) + 1 -var numInserts = Math.floor( Random.rand() * 300 ) + 1 +var bulkSize = Math.floor( Random.rand() * 200 ) + 1; +var numInserts = Math.floor( Random.rand() * 300 ) + 1; -print( "Inserting " + numInserts + " bulks of " + bulkSize + " documents." ) +print( "Inserting " + numInserts + " bulks of " + bulkSize + " documents." ); for( var i = 0; i < numInserts; i++ ){ - var bulk = [] + var bulk = []; for( var j = 0; j < bulkSize; j++ ){ - bulk.push({ hi : "there", i : i, j : j }) + bulk.push({ hi : "there", i : i, j : j }); } - coll.insert( bulk ) + coll.insert( bulk ); } -assert.eq( coll.count(), bulkSize * numInserts ) +assert.eq( coll.count(), bulkSize * numInserts ); |