summaryrefslogtreecommitdiff
path: root/jstests/core/type3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/type3.js')
-rw-r--r--jstests/core/type3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/type3.js b/jstests/core/type3.js
index 1b57e9bb989..6c2c71e2b0c 100644
--- a/jstests/core/type3.js
+++ b/jstests/core/type3.js
@@ -8,7 +8,7 @@
t = db.jstests_type3;
t.drop();
-t.createIndex({a: 1});
+t.ensureIndex({a: 1});
// Type Object
t.save({a: {'': ''}});