diff options
Diffstat (limited to 'jstests/core/geo_near_bounds_overflow.js')
-rw-r--r-- | jstests/core/geo_near_bounds_overflow.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_near_bounds_overflow.js b/jstests/core/geo_near_bounds_overflow.js index 1d13d568220..ff674e89052 100644 --- a/jstests/core/geo_near_bounds_overflow.js +++ b/jstests/core/geo_near_bounds_overflow.js @@ -13,7 +13,7 @@ function testBounds(min, max) { // Handle case where either 1. indexLambda will fail but not throw. We are asserting it // works, so the outer lambda generates an exception. 2. indexLambda itself will throw. const indexLambda = function(t) { - return t.createIndex({loc: '2d'}, indexBounds); + return t.ensureIndex({loc: '2d'}, indexBounds); }; const assertLambda = function(t, lambda) { assert.commandWorked(lambda(t)); |