summaryrefslogtreecommitdiff
path: root/jstests/core/geo_polygon1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_polygon1.js')
-rw-r--r--jstests/core/geo_polygon1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/geo_polygon1.js b/jstests/core/geo_polygon1.js
index 34b0cafa1d4..3d6d2ad81b2 100644
--- a/jstests/core/geo_polygon1.js
+++ b/jstests/core/geo_polygon1.js
@@ -13,7 +13,7 @@ for (x = 1; x < 9; x++) {
}
}
-t.ensureIndex({loc: "2d"});
+t.createIndex({loc: "2d"});
triangle = [[0, 0], [1, 1], [0, 2]];
@@ -50,7 +50,7 @@ pacman = [
];
t.save({loc: [1, 3]}); // Add a point that's in
-assert.commandWorked(t.ensureIndex({loc: "2d"}));
+assert.commandWorked(t.createIndex({loc: "2d"}));
assert.eq(1, t.find({loc: {$within: {$polygon: pacman}}}).count(), "Pacman single point");