diff options
Diffstat (limited to 'jstests/core/geo_multikey1.js')
-rw-r--r-- | jstests/core/geo_multikey1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/geo_multikey1.js b/jstests/core/geo_multikey1.js index 9c092f4ec31..e6d0ec086da 100644 --- a/jstests/core/geo_multikey1.js +++ b/jstests/core/geo_multikey1.js @@ -12,7 +12,7 @@ for (i = 0; i < 10; ++i) { t.save({loc: locArr, a: arr, b: arr, c: arr}); // Parallel arrays are allowed for geo indexes. -assert.commandWorked(t.ensureIndex({loc: '2d', a: 1, b: 1, c: 1})); +assert.commandWorked(t.createIndex({loc: '2d', a: 1, b: 1, c: 1})); // Parallel arrays are not allowed for normal indexes. -assert.commandFailed(t.ensureIndex({loc: 1, a: 1, b: 1, c: 1})); +assert.commandFailed(t.createIndex({loc: 1, a: 1, b: 1, c: 1})); |