summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-06-03 20:58:23 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-04 01:10:47 +0000
commit34b89472092922061c29dbfe72f1f8e4051f7856 (patch)
tree2f86df1a628439fa1073885abcdc1a120a227b47 /jstests/replsets
parent75803bea1f63a6a6b47090bcd2a354c18ff24c93 (diff)
downloadmongo-34b89472092922061c29dbfe72f1f8e4051f7856.tar.gz
SERVER-48245 disallow index drops on drop-pending namespaces (system.drop.*) if we are primary.
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/drop_collections_two_phase_drop_index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/drop_collections_two_phase_drop_index.js b/jstests/replsets/drop_collections_two_phase_drop_index.js
index 1b4e9bc3ecc..f7360b52d0b 100644
--- a/jstests/replsets/drop_collections_two_phase_drop_index.js
+++ b/jstests/replsets/drop_collections_two_phase_drop_index.js
@@ -40,7 +40,7 @@ try {
const dropPendingCollName = twoPhaseDropTest.prepareDropCollection(collName);
const dropPendingColl = testDB.getCollection(dropPendingCollName);
- assert.commandWorked(dropPendingColl.dropIndex({a: 1}));
+ assert.commandFailedWithCode(dropPendingColl.dropIndex({a: 1}), ErrorCodes.NamespaceNotFound);
} finally {
// COMMIT collection drop.
twoPhaseDropTest.commitDropCollection(collName);