summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@mongodb.com>2023-02-13 15:02:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-13 18:29:21 +0000
commit55cb4e708fbc364f7b3d9079240f987e81c37b61 (patch)
tree176f7491c724560f6b4777d40be6034035cb446f /jstests
parent729212ba5fa0694ab04c566c956df9705d5354ac (diff)
downloadmongo-55cb4e708fbc364f7b3d9079240f987e81c37b61.tar.gz
SERVER-73894 Add NamespaceNotFound error code to empty error code set in commandWorkedOrFailedWithCode invocation in drop_collection.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/ddl/drop_collection.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/core/ddl/drop_collection.js b/jstests/core/ddl/drop_collection.js
index 4ac5d140364..faf4a2e64d2 100644
--- a/jstests/core/ddl/drop_collection.js
+++ b/jstests/core/ddl/drop_collection.js
@@ -28,7 +28,7 @@ const coll = db[jsTestName() + "_coll"];
jsTest.log("Drop Unexistent collection.");
{
// Drop the collection
- // NamespaceNotFound will be returned by mongod versions earlier than 7.0.
+ // TODO (SERVER-73934): NamespaceNotFound will be returned by mongod versions earlier than 7.0.
assert.commandWorkedOrFailedWithCode(db.runCommand({drop: coll.getName()}),
ErrorCodes.NamespaceNotFound);
assertCollectionDropped(coll.getFullName());
@@ -45,8 +45,9 @@ jsTest.log("Drop existing collection.");
assertCollectionDropped(coll.getFullName());
// Test idempotency
- // NamespaceNotFound will be returned by mongod versions earlier than 7.0.
- assert.commandWorkedOrFailedWithCode(db.runCommand({drop: coll.getName()}));
+ // TODO (SERVER-73934): NamespaceNotFound will be returned by mongod versions earlier than 7.0.
+ assert.commandWorkedOrFailedWithCode(db.runCommand({drop: coll.getName()}),
+ ErrorCodes.NamespaceNotFound);
assertCollectionDropped(coll.getFullName());
}