diff options
Diffstat (limited to 'jstests/core/convert_to_capped.js')
-rw-r--r-- | jstests/core/convert_to_capped.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/jstests/core/convert_to_capped.js b/jstests/core/convert_to_capped.js index e9a05f09450..58731299dae 100644 --- a/jstests/core/convert_to_capped.js +++ b/jstests/core/convert_to_capped.js @@ -8,20 +8,20 @@ */ (function() { - "use strict"; +"use strict"; - let testDb = db.getSiblingDB("convert_to_capped"); - let coll = testDb.coll; - testDb.dropDatabase(); +let testDb = db.getSiblingDB("convert_to_capped"); +let coll = testDb.coll; +testDb.dropDatabase(); - // Create a collection with some data. - let num = 10; - for (let i = 0; i < num; ++i) { - assert.writeOK(coll.insert({_id: i})); - } +// Create a collection with some data. +let num = 10; +for (let i = 0; i < num; ++i) { + assert.writeOK(coll.insert({_id: i})); +} - // Ensure we do not allow overflowing the size long long on the server (SERVER-33078). - assert.commandFailedWithCode( - testDb.runCommand({convertToCapped: coll.getName(), size: 5308156746568725891247}), - ErrorCodes.BadValue); +// Ensure we do not allow overflowing the size long long on the server (SERVER-33078). +assert.commandFailedWithCode( + testDb.runCommand({convertToCapped: coll.getName(), size: 5308156746568725891247}), + ErrorCodes.BadValue); })(); |