summaryrefslogtreecommitdiff
path: root/jstests/core/explain_multi_plan.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/explain_multi_plan.js')
-rw-r--r--jstests/core/explain_multi_plan.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/explain_multi_plan.js b/jstests/core/explain_multi_plan.js
index 845438af91e..dc8f153e6cb 100644
--- a/jstests/core/explain_multi_plan.js
+++ b/jstests/core/explain_multi_plan.js
@@ -16,8 +16,8 @@ var coll = db.explainMultiPlan;
coll.drop();
// Create indices to ensure there are multiple plans available.
-assert.commandWorked(coll.createIndex({a: 1, b: 1}));
-assert.commandWorked(coll.createIndex({a: 1, b: -1}));
+assert.commandWorked(coll.ensureIndex({a: 1, b: 1}));
+assert.commandWorked(coll.ensureIndex({a: 1, b: -1}));
// Insert some data to work with.
var bulk = coll.initializeOrderedBulkOp();