diff --git a/test/common/index.js b/test/common/index.js index 148dad20001b04..6ea3d89f0b9a37 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -466,7 +466,7 @@ function _mustCallInner(fn, criteria, 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; };