diff options
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/index.js b/test/common/index.js index 838c7b60da..ee2de37bb7 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -524,8 +524,8 @@ function _mustCallInner(fn, criteria = 1, field) { } exports.hasMultiLocalhost = function hasMultiLocalhost() { - const TCP = process.binding('tcp_wrap').TCP; - const t = new TCP(); + const { TCP, constants: TCPConstants } = process.binding('tcp_wrap'); + const t = new TCP(TCPConstants.SOCKET); const ret = t.bind('127.0.0.2', exports.PORT); t.close(); return ret === 0; |