diff options
Diffstat (limited to 'jstests/mmap_v1/indexi.js')
-rw-r--r-- | jstests/mmap_v1/indexi.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/jstests/mmap_v1/indexi.js b/jstests/mmap_v1/indexi.js index e23d70e7b6d..2d6c501a31e 100644 --- a/jstests/mmap_v1/indexi.js +++ b/jstests/mmap_v1/indexi.js @@ -7,11 +7,11 @@ idx = db.jstests_indexi.$_id_; // Test that accessing the index namespace fails. function checkFailingOperations() { - assert.writeError( idx.insert({ x: 1 }) ); - assert.writeError( idx.update({ x: 1 }, { x: 2 }) ); - assert.writeError( idx.remove({ x: 1 }) ); - assert.commandFailed( idx.runCommand( 'compact' ) ); - assert.commandFailed( idx.ensureIndex({ x: 1 })); + assert.writeError(idx.insert({x: 1})); + assert.writeError(idx.update({x: 1}, {x: 2})); + assert.writeError(idx.remove({x: 1})); + assert.commandFailed(idx.runCommand('compact')); + assert.commandFailed(idx.ensureIndex({x: 1})); } // Check with base collection not present. @@ -20,4 +20,3 @@ t.save({}); // Check with base collection present. checkFailingOperations(); - |