diff options
Diffstat (limited to 'jstests/core/profile2.js')
-rw-r--r-- | jstests/core/profile2.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/profile2.js b/jstests/core/profile2.js index 836fbce8f11..bb1605abd1e 100644 --- a/jstests/core/profile2.js +++ b/jstests/core/profile2.js @@ -10,7 +10,7 @@ assert.commandWorked(coll.getDB().runCommand({profile: 2})); var str = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; var hugeStr = str; -while (hugeStr.length < 2*1024*1024){ +while (hugeStr.length < 2 * 1024 * 1024) { hugeStr += str; } @@ -39,7 +39,7 @@ assert(result.hasOwnProperty('ns')); assert(result.hasOwnProperty('millis')); assert(result.hasOwnProperty('query')); assert.eq('string', typeof(result.query)); -assert(result.query.match(/^{ a: "a+\.\.\." }$/)); // String value is truncated. +assert(result.query.match(/^{ a: "a+\.\.\." }$/)); // String value is truncated. assert.commandWorked(coll.getDB().runCommand({profile: 0})); coll.getDB().system.profile.drop(); @@ -54,7 +54,7 @@ assert(result.hasOwnProperty('ns')); assert(result.hasOwnProperty('millis')); assert(result.hasOwnProperty('updateobj')); assert.eq('string', typeof(result.updateobj)); -assert(result.updateobj.match(/^{ a: "a+\.\.\." }$/)); // String value is truncated. +assert(result.updateobj.match(/^{ a: "a+\.\.\." }$/)); // String value is truncated. assert.commandWorked(coll.getDB().runCommand({profile: 0})); coll.getDB().system.profile.drop(); |