diff options
Diffstat (limited to 'jstests/core/notablescan.js')
-rw-r--r-- | jstests/core/notablescan.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/notablescan.js b/jstests/core/notablescan.js index adad7f1b725..eca1bd2e787 100644 --- a/jstests/core/notablescan.js +++ b/jstests/core/notablescan.js @@ -44,7 +44,7 @@ try { assert.includes(err.toString(), "hint $natural is not allowed, because 'notablescan' is enabled"); - t.createIndex({a: 1}); + t.ensureIndex({a: 1}); assert.eq(0, t.find({a: 1, b: 1}).itcount()); assert.eq(1, t.find({a: 1, b: null}).itcount()); |