Skip to content

Commit

Permalink
Add workaround for Node 7.7.2 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos committed Mar 9, 2017
1 parent 011dc1f commit 4ba2a8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ describe('loopback application', function() {
}

function sendHttpRequestInOnePacket(port, reqString, cb) {
var socket = net.createConnection(port);
// the no-op listener is a workaround for problem in Node 7.7.2
var socket = net.createConnection(port, ()=>{});
var response = new Buffer(0);

socket.on('data', function(chunk) {
Expand Down

0 comments on commit 4ba2a8e

Please # to comment.