diff options
Diffstat (limited to 'jstests/core/bad_index_plugin.js')
-rw-r--r-- | jstests/core/bad_index_plugin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/bad_index_plugin.js b/jstests/core/bad_index_plugin.js index 7ecfe76c198..c9cd549cc03 100644 --- a/jstests/core/bad_index_plugin.js +++ b/jstests/core/bad_index_plugin.js @@ -1,10 +1,10 @@ // SERVER-5826 ensure you can't build an index with a non-existent plugin t = db.bad_index_plugin; -assert.commandWorked(t.ensureIndex({good: 1})); +assert.commandWorked(t.createIndex({good: 1})); assert.eq(t.getIndexes().length, 2); // good + _id -var err = t.ensureIndex({bad: 'bad'}); +var err = t.createIndex({bad: 'bad'}); assert.commandFailed(err); assert(err.code >= 0); |