summaryrefslogtreecommitdiff
path: root/jstests/core/exists.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/exists.js')
-rw-r--r--jstests/core/exists.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/exists.js b/jstests/core/exists.js
index e0ba49fabd8..b85d80c36a7 100644
--- a/jstests/core/exists.js
+++ b/jstests/core/exists.js
@@ -36,10 +36,10 @@ function dotest(n) {
}
dotest("before index");
-t.ensureIndex({"a": 1});
-t.ensureIndex({"a.b": 1});
-t.ensureIndex({"a.b.c": 1});
-t.ensureIndex({"a.b.c.d": 1});
+t.createIndex({"a": 1});
+t.createIndex({"a.b": 1});
+t.createIndex({"a.b.c": 1});
+t.createIndex({"a.b.c.d": 1});
dotest("after index");
assert.eq(1, t.find({a: {$exists: false}}).hint({a: 1}).itcount());