summaryrefslogtreecommitdiff
path: root/jstests/core/indexr.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexr.js')
-rw-r--r--jstests/core/indexr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/indexr.js b/jstests/core/indexr.js
index 15cd56e9681..de3afe8cdc1 100644
--- a/jstests/core/indexr.js
+++ b/jstests/core/indexr.js
@@ -15,8 +15,8 @@ assert.eq(1, t.count({a: {b: 3, c: 6}, 'a.c': {$lt: 4}}));
// Check with single key indexes.
t.remove({});
-t.ensureIndex({'a.b': 1, 'a.c': 1});
-t.ensureIndex({a: 1, 'a.c': 1});
+t.createIndex({'a.b': 1, 'a.c': 1});
+t.createIndex({a: 1, 'a.c': 1});
assert.eq(0, t.count({'a.b': {$gt: 2}, 'a.c': {$lt: 4}}));
assert.eq(0, t.count({a: {b: 3, c: 6}, 'a.c': {$lt: 4}}));