summaryrefslogtreecommitdiff
path: root/jstests/core/indexa.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexa.js')
-rw-r--r--jstests/core/indexa.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/indexa.js b/jstests/core/indexa.js
index 90e74adc4f4..01fde035621 100644
--- a/jstests/core/indexa.js
+++ b/jstests/core/indexa.js
@@ -8,7 +8,7 @@
t = db.indexa;
t.drop();
-t.ensureIndex({x: 1}, true);
+t.createIndex({x: 1}, true);
t.insert({'x': 'A'});
t.insert({'x': 'B'});