mirror of https://github.com/mongodb/mongo
SERVER-110845 Use deleteMany instead of drop in index_key_expression.… (#43048)
GitOrigin-RevId: 594f839ceec1f4385be9a690131412d67b249a0a
This commit is contained in:
parent
889e1451b1
commit
d4511d28ec
|
|
@ -1045,9 +1045,9 @@ const testScenarios = [
|
|||
testScenarios.forEach(testScenario => {
|
||||
jsTestLog("Testing scenario: " + tojson(testScenario));
|
||||
|
||||
// Drop the collection so the '$$ROOT' does not pick documents from the last test
|
||||
// Clear the collection so the '$$ROOT' does not pick documents from the last test
|
||||
// scenario.
|
||||
collection.drop();
|
||||
collection.deleteMany({});
|
||||
|
||||
// Insert the document to the collection if the field 'doc' exists in the
|
||||
// test-scenario dictionary.
|
||||
|
|
|
|||
Loading…
Reference in New Issue