Skip to content

Commit

Permalink
Fix test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoerlitz committed Jan 28, 2015
1 parent bfc2e09 commit 56027e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/winston-logstash_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ describe('winston-logstash transport', function() {
}, function (data) {
response = data.toString();
expect(JSON.parse(response)).to.be.eql(expected);
done();
if (silence) {
done();
silence = false;
}
});

logger.transports.logstash.on('error', function (err) {
Expand Down

0 comments on commit 56027e0

Please sign in to comment.