summaryrefslogtreecommitdiff
path: root/jstests/core/not2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/not2.js')
-rw-r--r--jstests/core/not2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/not2.js b/jstests/core/not2.js
index 31b2efcfa02..0cd9209ce2d 100644
--- a/jstests/core/not2.js
+++ b/jstests/core/not2.js
@@ -86,6 +86,6 @@ function doTest() {
doTest();
// Run the test with an index present.
-assert.commandWorked(coll.createIndex({i: 1}));
+assert.commandWorked(coll.ensureIndex({i: 1}));
doTest();
}());