SERVER-110845 Use deleteMany instead of drop in index_key_expression.… (#43048)

GitOrigin-RevId: 594f839ceec1f4385be9a690131412d67b249a0a
This commit is contained in:
Evan Bergeron 2025-10-23 15:32:03 -04:00 committed by MongoDB Bot
parent 889e1451b1
commit d4511d28ec
1 changed files with 2 additions and 2 deletions

View File

@ -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.