summaryrefslogtreecommitdiff
path: root/jstests/core/count5.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/count5.js')
-rw-r--r--jstests/core/count5.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/count5.js b/jstests/core/count5.js
index b89eb88d494..ceedf62b336 100644
--- a/jstests/core/count5.js
+++ b/jstests/core/count5.js
@@ -14,7 +14,7 @@ q = {
assert.eq(50, t.find(q).count(), "A");
assert.eq(50, t.find(q).itcount(), "B");
-t.ensureIndex({x: 1});
+t.createIndex({x: 1});
assert.eq(50, t.find(q).count(), "C");
assert.eq(50, t.find(q).itcount(), "D");