diff options
Diffstat (limited to 'jstests/core/index_check2.js')
-rw-r--r-- | jstests/core/index_check2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/index_check2.js b/jstests/core/index_check2.js index 216ca7fb283..8feeb7d42a8 100644 --- a/jstests/core/index_check2.js +++ b/jstests/core/index_check2.js @@ -32,7 +32,7 @@ assert.eq(120, t.find(q1).itcount(), "q1 a"); assert.eq(120, t.find(q2).itcount(), "q2 a"); assert.eq(60, t.find(q3).itcount(), "q3 a"); -t.createIndex({tags: 1}); +t.ensureIndex({tags: 1}); assert.eq(120, t.find(q1).itcount(), "q1 a"); assert.eq(120, t.find(q2).itcount(), "q2 a"); |