diff options
Diffstat (limited to 'jstests/core/geo_allowedcomparisons.js')
-rw-r--r-- | jstests/core/geo_allowedcomparisons.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_allowedcomparisons.js b/jstests/core/geo_allowedcomparisons.js index 576e764820a..24b4ce95efa 100644 --- a/jstests/core/geo_allowedcomparisons.js +++ b/jstests/core/geo_allowedcomparisons.js @@ -34,7 +34,7 @@ t.ensureIndex({geo: "2d"}); // 2d doesn't know what to do w/this assert.writeError(t.insert({geo: geojsonPoint})); // Old points are OK. -assert.writeOK(t.insert({geo: oldPoint})); +assert.commandWorked(t.insert({geo: oldPoint})); // Lines not OK in 2d assert.writeError(t.insert({geo: geojsonLine})); // Shapes are not OK to insert in 2d |