diff --git a/test/common/index.js b/test/common/index.js index f0ff81939940e6..f745f68546f866 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -524,7 +524,7 @@ function _mustCallInner(fn, criteria = 1, field) { exports.hasMultiLocalhost = function hasMultiLocalhost() { const { TCP, constants: TCPConstants } = process.binding('tcp_wrap'); const t = new TCP(TCPConstants.SOCKET); - const ret = t.bind('127.0.0.2', exports.PORT); + const ret = t.bind('127.0.0.2', 0); t.close(); return ret === 0; };