diff options
Diffstat (limited to 'jstests/core/sort4.js')
-rw-r--r-- | jstests/core/sort4.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/sort4.js b/jstests/core/sort4.js index 0afe2cebe80..e74df1f4bd6 100644 --- a/jstests/core/sort4.js +++ b/jstests/core/sort4.js @@ -36,10 +36,10 @@ nice({name: 1, prename: 1}, "A,AB,AC,BB,BD", "e1"); assert.commandWorked(coll.insert({name: 'C'})); nice({name: 1, prename: 1}, "A,AB,AC,BB,BD,C", "e2"); // SERVER-282 -assert.commandWorked(coll.ensureIndex({name: 1, prename: 1})); +assert.commandWorked(coll.createIndex({name: 1, prename: 1})); nice({name: 1, prename: 1}, "A,AB,AC,BB,BD,C", "e2ia"); // SERVER-282 assert.commandWorked(coll.dropIndexes()); -assert.commandWorked(coll.ensureIndex({name: 1})); +assert.commandWorked(coll.createIndex({name: 1})); nice({name: 1, prename: 1}, "A,AB,AC,BB,BD,C", "e2ib"); // SERVER-282 }()); |