summaryrefslogtreecommitdiff
path: root/jstests/core/index_type_change.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/index_type_change.js')
-rw-r--r--jstests/core/index_type_change.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/index_type_change.js b/jstests/core/index_type_change.js
index 4ecb5081347..d23984a132d 100644
--- a/jstests/core/index_type_change.js
+++ b/jstests/core/index_type_change.js
@@ -18,7 +18,7 @@ load("jstests/libs/analyze_plan.js"); // For 'isIndexOnly'.
var coll = db.index_type_change;
coll.drop();
-assert.commandWorked(coll.ensureIndex({a: 1}));
+assert.commandWorked(coll.createIndex({a: 1}));
assert.commandWorked(coll.insert({a: 2}));
assert.eq(1, coll.find({a: {$type: "double"}}).itcount());