diff options
Diffstat (limited to 'jstests/core/arrayfind7.js')
-rw-r--r-- | jstests/core/arrayfind7.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/arrayfind7.js b/jstests/core/arrayfind7.js index be2061c5c0d..699f8c9586d 100644 --- a/jstests/core/arrayfind7.js +++ b/jstests/core/arrayfind7.js @@ -11,7 +11,7 @@ function checkElemMatchMatches() { // The document is matched using nested $elemMatch expressions, with and without an index. checkElemMatchMatches(); -t.createIndex({'a.b.c': 1}); +t.ensureIndex({'a.b.c': 1}); checkElemMatchMatches(); function checkElemMatch(index, document, query) { @@ -19,7 +19,7 @@ function checkElemMatch(index, document, query) { t.drop(); t.save(document); assert.eq(1, t.count(query)); - t.createIndex(index); + t.ensureIndex(index); assert.eq(1, t.count(query)); t.save({a: {b: {c: [10, 11]}}}); // Make the index multikey. assert.eq(1, t.count(query)); |