diff options
Diffstat (limited to 'jstests/core/logprocessdetails.js')
-rw-r--r-- | jstests/core/logprocessdetails.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/core/logprocessdetails.js b/jstests/core/logprocessdetails.js index c53655843e1..1ff4fff1112 100644 --- a/jstests/core/logprocessdetails.js +++ b/jstests/core/logprocessdetails.js @@ -7,9 +7,9 @@ * Returns true if regex matches a string in the array */ doesLogMatchRegex = function(logArray, regex) { - for (var i = (logArray.length - 1); i >= 0; i--){ + for (var i = (logArray.length - 1); i >= 0; i--) { var regexInLine = regex.exec(logArray[i]); - if (regexInLine != null){ + if (regexInLine != null) { return true; } } @@ -17,18 +17,18 @@ doesLogMatchRegex = function(logArray, regex) { }; doTest = function() { - var log = db.adminCommand({ getLog: 'global'}); - //this regex will need to change if output changes + var log = db.adminCommand({getLog: 'global'}); + // this regex will need to change if output changes var re = new RegExp(".*conn.*options.*"); assert.neq(null, log); var lineCount = log.totalLinesWritten; assert.neq(0, lineCount); - var result = db.adminCommand({ logRotate: 1}); + var result = db.adminCommand({logRotate: 1}); assert.eq(1, result.ok); - var log2 = db.adminCommand({ getLog: 'global'}); + var log2 = db.adminCommand({getLog: 'global'}); assert.neq(null, log2); assert.gte(log2.totalLinesWritten, lineCount); |