diff options
Diffstat (limited to 'jstests/core/geo_s2nearwithin.js')
-rw-r--r-- | jstests/core/geo_s2nearwithin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_s2nearwithin.js b/jstests/core/geo_s2nearwithin.js index 8018dfec575..eb334e89aff 100644 --- a/jstests/core/geo_s2nearwithin.js +++ b/jstests/core/geo_s2nearwithin.js @@ -18,7 +18,7 @@ origin = { "coordinates": [0, 0] }; -assert.commandWorked(t.ensureIndex({geo: "2dsphere"})); +assert.commandWorked(t.createIndex({geo: "2dsphere"})); // Near requires an index, and 2dsphere is an index. Spherical isn't // specified so this doesn't work. let res = assert.commandFailedWithCode(t.runCommand("aggregate", { |