diff options
Diffstat (limited to 'jstests/core/geo_s2nearcorrect.js')
-rw-r--r-- | jstests/core/geo_s2nearcorrect.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_s2nearcorrect.js b/jstests/core/geo_s2nearcorrect.js index 80ece4223d2..54552a4bee5 100644 --- a/jstests/core/geo_s2nearcorrect.js +++ b/jstests/core/geo_s2nearcorrect.js @@ -10,7 +10,7 @@ longline = { "coordinates": [[0, 0], [179, 89]] }; t.insert({geo: longline}); -t.createIndex({geo: "2dsphere"}); +t.ensureIndex({geo: "2dsphere"}); origin = { "type": "Point", "coordinates": [45, 45] |