summaryrefslogtreecommitdiff
path: root/jstests/core/indexn.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexn.js')
-rw-r--r--jstests/core/indexn.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/indexn.js b/jstests/core/indexn.js
index 02547280ad9..014ba050cbc 100644
--- a/jstests/core/indexn.js
+++ b/jstests/core/indexn.js
@@ -9,8 +9,8 @@ t.drop();
t.save({a: 1, b: [1, 2]});
-t.createIndex({a: 1});
-t.createIndex({b: 1});
+t.ensureIndex({a: 1});
+t.ensureIndex({b: 1});
// {a:1} is a single key index, so no matches are possible for this query
assert.eq(0, t.count({a: {$gt: 5, $lt: 0}}));