diff options
Diffstat (limited to 'jstests/core/geoa.js')
-rw-r--r-- | jstests/core/geoa.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geoa.js b/jstests/core/geoa.js index c1e0a2f796a..52a9d79db3b 100644 --- a/jstests/core/geoa.js +++ b/jstests/core/geoa.js @@ -10,7 +10,7 @@ t.save({_id: 1, a: {loc: [5, 5]}}); t.save({_id: 2, a: {loc: [6, 6]}}); t.save({_id: 3, a: {loc: [7, 7]}}); -t.ensureIndex({"a.loc": "2d"}); +t.createIndex({"a.loc": "2d"}); cur = t.find({"a.loc": {$near: [6, 6]}}); assert.eq(2, cur.next()._id, "A1"); |