Skip to content

Commit

Permalink
Remove once handlers in tests, even though it would still fail
Browse files Browse the repository at this point in the history
  • Loading branch information
djMax committed Oct 19, 2016
1 parent af4e07c commit e434a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/winston-logstash_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('winston-logstash transport', function() {
function createTestServer(port, on_data) {
var server = net.createServer(function (socket) {
socket.on('end', function () { });
socket.once('data', on_data);
socket.on('data', on_data);
});
server.listen(port, function() {});

Expand All @@ -50,7 +50,7 @@ describe('winston-logstash transport', function() {
};
var server = tls.createServer(serverOptions, function(socket) {
socket.on('end', function () { });
socket.once('data', on_data);
socket.on('data', on_data);
});
server.listen(port, function() {});

Expand Down

0 comments on commit e434a54

Please sign in to comment.