summaryrefslogtreecommitdiff
path: root/jstests/core/geo7.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo7.js')
-rw-r--r--jstests/core/geo7.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/geo7.js b/jstests/core/geo7.js
index 4316c8d6c03..9d1b7f574ca 100644
--- a/jstests/core/geo7.js
+++ b/jstests/core/geo7.js
@@ -6,13 +6,13 @@ t.insert({_id: 2, y: [1, 1], z: 3});
t.insert({_id: 3, y: [1, 1], z: 4});
t.insert({_id: 4, y: [1, 1], z: 5});
-t.ensureIndex({y: "2d", z: 1});
+t.createIndex({y: "2d", z: 1});
assert.eq(1, t.find({y: [1, 1], z: 3}).itcount(), "A1");
t.dropIndex({y: "2d", z: 1});
-t.ensureIndex({y: "2d"});
+t.createIndex({y: "2d"});
assert.eq(1, t.find({y: [1, 1], z: 3}).itcount(), "A2");
t.insert({_id: 5, y: 5});