summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-04-05 21:40:35 -0400
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-04-05 21:41:43 -0400
commit36edb90af0cfe2649de3f45e574b64dd7b0fcf37 (patch)
treea17a2bf2c350ece35f4d8a3f1535e41b11baec2e
parent3e7b98708d5e412821c08acea437d3b646473736 (diff)
downloadmongo-36edb90af0cfe2649de3f45e574b64dd7b0fcf37.tar.gz
SERVER-39663 change dropIndex("*") to dropIndexes("*") to drop multiple indexes
-rw-r--r--jstests/core/index_many2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/index_many2.js b/jstests/core/index_many2.js
index c7f993e35e5..f6f6b0cb392 100644
--- a/jstests/core/index_many2.js
+++ b/jstests/core/index_many2.js
@@ -29,5 +29,5 @@ assert.eq(num - 1, t.getIndexKeys().length, "B0");
t.ensureIndex({z: 1});
assert.eq(num, t.getIndexKeys().length, "B1");
-t.dropIndex("*");
+t.dropIndexes("*");
assert.eq(1, t.getIndexKeys().length, "C1");