diff options
Diffstat (limited to 'jstests/core/exists3.js')
-rw-r--r-- | jstests/core/exists3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/exists3.js b/jstests/core/exists3.js index 510d63c3752..e4ce03437bb 100644 --- a/jstests/core/exists3.js +++ b/jstests/core/exists3.js @@ -11,7 +11,7 @@ assert.eq(1, t.find({c: {$exists: false}}).itcount()); assert.eq(1, t.find({c: {$exists: false}}).sort({c: -1}).itcount()); // now we have an index on the sort key -t.createIndex({c: -1}); +t.ensureIndex({c: -1}); assert.eq(1, t.find({c: {$exists: false}}).sort({c: -1}).itcount()); assert.eq(1, t.find({c: {$exists: false}}).itcount()); |