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