summaryrefslogtreecommitdiff
path: root/jstests/core/geo_big_polygon3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_big_polygon3.js')
-rw-r--r--jstests/core/geo_big_polygon3.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/geo_big_polygon3.js b/jstests/core/geo_big_polygon3.js
index a55ce87c3d6..cd4591dd66a 100644
--- a/jstests/core/geo_big_polygon3.js
+++ b/jstests/core/geo_big_polygon3.js
@@ -63,7 +63,7 @@ var bigPoly = {
};
// 2dsphere index required
-assert.commandWorked(coll.ensureIndex({geo: "2dsphere"}), "2dsphere index");
+assert.commandWorked(coll.createIndex({geo: "2dsphere"}), "2dsphere index");
// $nearSphere on big polygon should fail
assert.throws(function() {
@@ -222,7 +222,7 @@ assert.eq(totalDocs,
"crs84CRS or epsg4326CRS intersects");
// Add index and look again for stored point & spherical CRS documents
-assert.commandWorked(coll.ensureIndex({geo: "2dsphere"}), "2dsphere index");
+assert.commandWorked(coll.createIndex({geo: "2dsphere"}), "2dsphere index");
assert.eq(totalDocs,
coll.count({geo: {$geoWithin: {$geometry: poly}}}),