summaryrefslogtreecommitdiff
path: root/jstests/core/or4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/or4.js')
-rw-r--r--jstests/core/or4.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/or4.js b/jstests/core/or4.js
index f065ccbec86..e095eb9961c 100644
--- a/jstests/core/or4.js
+++ b/jstests/core/or4.js
@@ -14,8 +14,8 @@ const coll = db.or4;
coll.drop();
db.getCollection("mrOutput").drop();
-coll.ensureIndex({a: 1});
-coll.ensureIndex({b: 1});
+coll.createIndex({a: 1});
+coll.createIndex({b: 1});
assert.commandWorked(coll.insert({a: 2}));
assert.commandWorked(coll.insert({b: 3}));