diff options
Diffstat (limited to 'jstests/core/collection_truncate.js')
-rw-r--r-- | jstests/core/collection_truncate.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/collection_truncate.js b/jstests/core/collection_truncate.js index 1581762f30a..08de3e8c1ed 100644 --- a/jstests/core/collection_truncate.js +++ b/jstests/core/collection_truncate.js @@ -5,7 +5,7 @@ t.drop(); function truncate() { // Until SERVER-15274 is implemented, this is the only way to truncate a collection. - assert.commandWorked(t.runCommand('emptycapped')); // works on non-capped as well. + assert.commandWorked(t.runCommand('emptycapped')); // works on non-capped as well. } function assertEmpty() { @@ -27,14 +27,14 @@ function assertEmpty() { } // Single record case. -t.insert({a:1}); +t.insert({a: 1}); truncate(); assertEmpty(); // Multi-extent case. var initialStorageSize = t.stats().storageSize; while (t.stats().storageSize == initialStorageSize) { - t.insert({a:1}); + t.insert({a: 1}); } truncate(); assertEmpty(); |