Skip to content

Commit

Permalink
Update helpers/logging_iterator_wrapper.js
Browse files Browse the repository at this point in the history
Co-Authored-By: ilias bhallil <ilias.bhal@gmail.com>
  • Loading branch information
lvancraen and iliasbhal committed Jun 21, 2019
1 parent 1418f44 commit 809cd98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/logging_iterator_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = (prefix, valueByKey, iteratee) => {

numberOfKeysDone += 1;

if (Date.now() - lastLogAt > interval && process.env.TEST === undefined) {
if (!process.env.TEST && Date.now() - lastLogAt > interval) {
const numberOfTotalKeys = valueByKey instanceof Array ? valueByKey.length : valueByKey.size;
const percentageDone = (numberOfKeysDone / numberOfTotalKeys) * 100;

Expand Down

0 comments on commit 809cd98

Please sign in to comment.