diff --git a/test/integration.test.js b/test/integration.test.js index 46e0e9cec..7d3f8f500 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -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) {