summaryrefslogtreecommitdiff
path: root/jstests/core/indexs.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexs.js')
-rw-r--r--jstests/core/indexs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/indexs.js b/jstests/core/indexs.js
index 6ee625071e2..2fc9724a590 100644
--- a/jstests/core/indexs.js
+++ b/jstests/core/indexs.js
@@ -4,16 +4,16 @@
t = db.jstests_indexs;
t.drop();
-t.createIndex({a: 1});
+t.ensureIndex({a: 1});
t.save({a: [{b: 3}]});
assert.eq(1, t.count({a: {b: 3}}));
t.drop();
-t.createIndex({a: 1, 'a.b': 1});
+t.ensureIndex({a: 1, 'a.b': 1});
t.save({a: {b: 3}});
assert.eq(1, t.count({a: {b: 3}}));
t.drop();
-t.createIndex({a: 1, 'a.b': 1});
+t.ensureIndex({a: 1, 'a.b': 1});
t.save({a: [{b: 3}]});
assert.eq(1, t.count({a: {b: 3}}));