summaryrefslogtreecommitdiff
path: root/jstests/core/count7.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/count7.js')
-rw-r--r--jstests/core/count7.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/count7.js b/jstests/core/count7.js
index 443134474a8..95417e241de 100644
--- a/jstests/core/count7.js
+++ b/jstests/core/count7.js
@@ -5,7 +5,7 @@
t = db.jstests_count7;
t.drop();
-t.createIndex({a: 1});
+t.ensureIndex({a: 1});
t.save({a: 'algebra'});
t.save({a: 'apple'});
t.save({a: 'azores'});