diff options
Diffstat (limited to 'jstests/core/geo_s2ordering.js')
-rw-r--r-- | jstests/core/geo_s2ordering.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_s2ordering.js b/jstests/core/geo_s2ordering.js index 8ef84905b75..9e53cafb981 100644 --- a/jstests/core/geo_s2ordering.js +++ b/jstests/core/geo_s2ordering.js @@ -35,7 +35,7 @@ function makepoints(needle) { } function runTest(index) { - assert.commandWorked(coll.ensureIndex(index)); + assert.commandWorked(coll.createIndex(index)); const cursor = coll.find({nongeo: needle, geo: {$within: {$centerSphere: [[0, 0], Math.PI / 180.0]}}}); const stats = cursor.explain("executionStats").executionStats; |