summaryrefslogtreecommitdiff
path: root/jstests/core/removea.js
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2023-01-09 21:02:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-09 22:32:29 +0000
commit4be00f9aef88e082f0ef170873fb5c7e30da1c1c (patch)
tree156a7d7e9ce1e1e8a2c5c5d404a0c4b5127b2434 /jstests/core/removea.js
parent9c2d2f716db7924c7fe12af379437f637efba744 (diff)
downloadmongo-4be00f9aef88e082f0ef170873fb5c7e30da1c1c.tar.gz
SERVER-64473 Split up `core` jstest directory
Diffstat (limited to 'jstests/core/removea.js')
-rw-r--r--jstests/core/removea.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/jstests/core/removea.js b/jstests/core/removea.js
deleted file mode 100644
index 9fd489b7005..00000000000
--- a/jstests/core/removea.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// @tags: [requires_non_retryable_writes, requires_fastcount]
-
-// Test removal of a substantial proportion of inserted documents.
-(function() {
-"use strict";
-
-const t = db.jstests_removea;
-
-Random.setRandomSeed();
-
-for (let v = 0; v < 2; ++v) { // Try each index version.
- t.drop();
- t.createIndex({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.commandWorked(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.commandWorked(t.remove({a: {$in: toDrop}}));
-}
-})();