summaryrefslogtreecommitdiff
path: root/jstests/core/array1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/array1.js')
-rw-r--r--jstests/core/array1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/array1.js b/jstests/core/array1.js
index 27addaed616..d25b609f3d3 100644
--- a/jstests/core/array1.js
+++ b/jstests/core/array1.js
@@ -14,6 +14,6 @@ assert.eq(1, coll.find(x).count());
assert.commandWorked(coll.insert(x));
assert.eq(2, coll.find(x).count());
-assert.commandWorked(coll.ensureIndex({a: 1}));
+assert.commandWorked(coll.createIndex({a: 1}));
assert.eq(2, coll.find(x).count());
}());