summaryrefslogtreecommitdiff
path: root/jstests/core/indexm.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexm.js')
-rw-r--r--jstests/core/indexm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/indexm.js b/jstests/core/indexm.js
index 7613b125357..820bedd7baa 100644
--- a/jstests/core/indexm.js
+++ b/jstests/core/indexm.js
@@ -13,12 +13,12 @@ function test() {
test();
// Now create an index.
-t.createIndex({"a": 1});
+t.ensureIndex({"a": 1});
test();
// Now create a different index.
t.dropIndexes();
-t.createIndex({"a.x": 1});
+t.ensureIndex({"a.x": 1});
test();
// Drop the indexes.