summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2021-04-29 09:47:31 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-10 14:59:48 +0000
commit856fabbb81c3348a2245863b9512d35276708630 (patch)
tree1bdb40754c9b3812f20afff4b40b7cb8e0fdaa66
parent925e0ea2b6ea9d4377d0be9f6305a74b69d580eb (diff)
downloadmongo-856fabbb81c3348a2245863b9512d35276708630.tar.gz
SERVER-56319 shell_writeconcern.js should explicitly remove _id:1 document
(cherry picked from commit 40ac62ae387cff401b4d067890083fd5f4586cf6)
-rw-r--r--jstests/core/shell_writeconcern.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/shell_writeconcern.js b/jstests/core/shell_writeconcern.js
index ae431dab94b..b54c15bb5fc 100644
--- a/jstests/core/shell_writeconcern.js
+++ b/jstests/core/shell_writeconcern.js
@@ -68,7 +68,7 @@ if (!db.getMongo().useWriteCommands()) {
assert.eq(0, res.nRemoved, tojson(res));
}
-var res = assert.commandWorked(collA.remove({}, {justOne: true, writeConcern: {w: 1}}));
+var res = assert.commandWorked(collA.remove({_id: 1}, {writeConcern: {w: 1}}));
if (!db.getMongo().useWriteCommands()) {
assert.eq(1, res.n, tojson(res));
} else {