summaryrefslogtreecommitdiff
path: root/jstests/core/expr.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/expr.js')
-rw-r--r--jstests/core/expr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/expr.js b/jstests/core/expr.js
index 1a23ac00d8b..a6861a4d2cf 100644
--- a/jstests/core/expr.js
+++ b/jstests/core/expr.js
@@ -190,7 +190,7 @@ if (db.getMongo().writeMode() === "commands") {
coll.drop();
assert.commandWorked(coll.insert({geo: {type: "Point", coordinates: [0, 0]}, a: 0}));
-assert.commandWorked(coll.ensureIndex({geo: "2dsphere"}));
+assert.commandWorked(coll.createIndex({geo: "2dsphere"}));
assert.eq(1,
coll.aggregate({
$geoNear: {