0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-25936 remove deleteIndexes references from tests

This commit is contained in:
Benety Goh 2018-12-27 12:15:59 -05:00
parent e9ab3a4f84
commit 9da0e26161
2 changed files with 2 additions and 3 deletions

View File

@ -19,8 +19,7 @@ assert.eq(0, coll.getIndexes().length, "D");
coll.ensureIndex({a: 1});
assert.eq(2, coll.getIndexes().length, "E");
assert.commandWorked(db.runCommand({deleteIndexes: coll.getName(), index: "*"}),
"delete indexes A");
assert.commandWorked(db.runCommand({dropIndexes: coll.getName(), index: "*"}), "drop indexes A");
assert.eq(1, coll.getIndexes().length, "G");
// make sure we can still use it

View File

@ -398,7 +398,7 @@ OplogEntry IdempotencyTest::buildIndex(const BSONObj& indexSpec,
}
OplogEntry IdempotencyTest::dropIndex(const std::string& indexName) {
auto cmd = BSON("deleteIndexes" << nss.coll() << "index" << indexName);
auto cmd = BSON("dropIndexes" << nss.coll() << "index" << indexName);
return makeCommandOplogEntry(nextOpTime(), nss, cmd);
}