diff --git a/test/helper.js b/test/helper.js index b92f3d5e1b..d007676ea6 100644 --- a/test/helper.js +++ b/test/helper.js @@ -159,11 +159,11 @@ module.exports = { killConnection: function (client) { // Change the connection option to a non existing one and destroy the stream client.connectionOption = { - port: 999999, + port: 65535, host: '127.0.0.1', family: 4 }; - client.address = '127.0.0.1:999999'; + client.address = '127.0.0.1:65535'; client.stream.destroy(); } };