From e0faf8c3e9765afa6180db75c06e39d5b88c0b2b Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Thu, 7 Oct 2021 18:49:07 +0900 Subject: [PATCH] test: replace common port with specific number PR-URL: https://github.com/nodejs/node/pull/40344 Fixes: https://github.com/nodejs/node/issues/40336 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Minwoo Jung Reviewed-By: Zijian Liu Reviewed-By: Robert Nagy --- test/parallel/test-net-connect-options-invalid.js | 4 ++-- test/parallel/test-socket-options-invalid.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-net-connect-options-invalid.js b/test/parallel/test-net-connect-options-invalid.js index 441e2583f3ee99..05a565463099ec 100644 --- a/test/parallel/test-net-connect-options-invalid.js +++ b/test/parallel/test-net-connect-options-invalid.js @@ -1,5 +1,5 @@ 'use strict'; -const common = require('../common'); +require('../common'); const assert = require('assert'); const net = require('net'); @@ -11,7 +11,7 @@ const net = require('net'); ]; invalidKeys.forEach((invalidKey) => { const option = { - ...common.localhostIPv4, + port: 8080, [invalidKey]: true }; const message = `The property 'options.${invalidKey}' is not supported. Received true`; diff --git a/test/parallel/test-socket-options-invalid.js b/test/parallel/test-socket-options-invalid.js index 96dc500cab8f08..32bf0810c65692 100644 --- a/test/parallel/test-socket-options-invalid.js +++ b/test/parallel/test-socket-options-invalid.js @@ -1,5 +1,5 @@ 'use strict'; -const common = require('../common'); +require('../common'); const assert = require('assert'); const net = require('net'); @@ -11,7 +11,6 @@ const net = require('net'); ]; invalidKeys.forEach((invalidKey) => { const option = { - ...common.localhostIPv4, [invalidKey]: true }; const message = `The property 'options.${invalidKey}' is not supported. Received true`;