diff options
-rw-r--r-- | jstests/libs/check_log.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/libs/check_log.js b/jstests/libs/check_log.js index 893fd812b03..809923b5dd3 100644 --- a/jstests/libs/check_log.js +++ b/jstests/libs/check_log.js @@ -55,9 +55,10 @@ var checkLog; * Throws an exception on timeout. */ var containsWithCount = function(conn, msg, expectedCount) { - var count = 0; + let count; assert.soon( function() { + count = 0; var logMessages = getGlobalLog(conn); if (logMessages === null) { return false; |