summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/current_op_reports_validation_io.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/current_op_reports_validation_io.js')
-rw-r--r--jstests/noPassthrough/current_op_reports_validation_io.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/current_op_reports_validation_io.js b/jstests/noPassthrough/current_op_reports_validation_io.js
index b2b80379bce..3eecda706ee 100644
--- a/jstests/noPassthrough/current_op_reports_validation_io.js
+++ b/jstests/noPassthrough/current_op_reports_validation_io.js
@@ -18,7 +18,7 @@ let coll = db.getCollection(collName);
coll.drop();
-assert.commandWorked(coll.createIndex({a: 1}));
+assert.commandWorked(coll.ensureIndex({a: 1}));
for (let i = 0; i < 5; i++) {
assert.commandWorked(coll.insert({a: i}));
}