summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2oddshapes.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2oddshapes.js')
-rw-r--r--jstests/core/geo_s2oddshapes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/geo_s2oddshapes.js b/jstests/core/geo_s2oddshapes.js
index 9ebe6be7ed3..0cc60a661a4 100644
--- a/jstests/core/geo_s2oddshapes.js
+++ b/jstests/core/geo_s2oddshapes.js
@@ -6,7 +6,7 @@
// ]
var t = db.geo_s2oddshapes;
t.drop();
-t.createIndex({geo: "2dsphere"});
+t.ensureIndex({geo: "2dsphere"});
var testPoint = {name: "origin", geo: {type: "Point", coordinates: [0.0, 0.0]}};
@@ -58,7 +58,7 @@ assert.eq(result.itcount(), 3);
// Test a poly that is the size of half the earth.
t.drop();
-t.createIndex({geo: "2dsphere"});
+t.ensureIndex({geo: "2dsphere"});
var insidePoint = {name: "inside", geo: {type: "Point", name: "inside", coordinates: [100.0, 0.0]}};
@@ -84,7 +84,7 @@ assert.eq(point.name, 'inside');
// Test a poly that is very small. A couple meters around.
t.drop();
-t.createIndex({geo: "2dsphere"});
+t.ensureIndex({geo: "2dsphere"});
insidePoint = {
name: "inside",