diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/core/removea.js | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/core/removea.js')
-rw-r--r-- | jstests/core/removea.js | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/jstests/core/removea.js b/jstests/core/removea.js index 082833b503a..ee914662d92 100644 --- a/jstests/core/removea.js +++ b/jstests/core/removea.js @@ -2,31 +2,31 @@ // Test removal of a substantial proportion of inserted documents. (function() { - "use strict"; +"use strict"; - const t = db.jstests_removea; +const t = db.jstests_removea; - Random.setRandomSeed(); +Random.setRandomSeed(); - for (let v = 0; v < 2; ++v) { // Try each index version. - t.drop(); - t.ensureIndex({a: 1}, {v: v}); - const S = 100; - const B = 100; - for (let x = 0; x < S; x++) { - let batch = []; - for (let y = 0; y < B; y++) { - let i = y + (B * x); - batch.push({a: i}); - } - assert.writeOK(t.insert(batch)); +for (let v = 0; v < 2; ++v) { // Try each index version. + t.drop(); + t.ensureIndex({a: 1}, {v: v}); + const S = 100; + const B = 100; + for (let x = 0; x < S; x++) { + let batch = []; + for (let y = 0; y < B; y++) { + let i = y + (B * x); + batch.push({a: i}); } - assert.eq(t.count(), S * B); + assert.writeOK(t.insert(batch)); + } + assert.eq(t.count(), S * B); - let toDrop = []; - for (let i = 0; i < S * B; ++i) { - toDrop.push(Random.randInt(10000)); // Dups in the query will be ignored. - } - assert.writeOK(t.remove({a: {$in: toDrop}})); + let toDrop = []; + for (let i = 0; i < S * B; ++i) { + toDrop.push(Random.randInt(10000)); // Dups in the query will be ignored. } + assert.writeOK(t.remove({a: {$in: toDrop}})); +} })(); |