summaryrefslogtreecommitdiff
path: root/jstests/core/nin.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/nin.js')
-rw-r--r--jstests/core/nin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/nin.js b/jstests/core/nin.js
index b9887e48828..d8a254357ba 100644
--- a/jstests/core/nin.js
+++ b/jstests/core/nin.js
@@ -57,5 +57,5 @@ doTest = function(n) {
doTest("no index");
t.drop();
-t.createIndex({a: 1});
+t.ensureIndex({a: 1});
doTest("with index");