summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2near_equator_opposite.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2near_equator_opposite.js')
-rw-r--r--jstests/core/geo_s2near_equator_opposite.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_s2near_equator_opposite.js b/jstests/core/geo_s2near_equator_opposite.js
index de196ea70eb..4b028baf43c 100644
--- a/jstests/core/geo_s2near_equator_opposite.js
+++ b/jstests/core/geo_s2near_equator_opposite.js
@@ -12,7 +12,7 @@ t.drop();
t.insert({loc: {type: 'Point', coordinates: [0, 0]}});
t.insert({loc: {type: 'Point', coordinates: [-1, 0]}});
-t.ensureIndex({loc: '2dsphere'});
+t.createIndex({loc: '2dsphere'});
// upper bound for half of earth's circumference in meters
var dist = 40075000 / 2 + 1;