Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Update test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stopal-r7 authored Nov 9, 2016
1 parent 6499336 commit dbcac48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ tape('Socket is not closed after inactivity timeout when buffer is not empty.',
t.equals(log1, expected1, 'first log received.');
});

logger.on('timed out', function () {
logger.once('timed out', function () {
t.true(logger.drained, 'timeout event triggered and logger was drained.');
});

Expand All @@ -597,7 +597,7 @@ tape('Socket is not closed after inactivity timeout when buffer is not empty.',
const expected2 = [tkn, lvl, 'second log' + '\n'].join(' ');
t.equals(log2, expected2, 'log before inactivity timeout received.');
});
}, 301);
}, 299);
mock.disable();
});
logger.log(lvl, 'first log');
Expand Down

0 comments on commit dbcac48

Please sign in to comment.