0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00

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 <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
This commit is contained in:
Daijiro Wachi 2021-10-07 18:49:07 +09:00 committed by Node.js GitHub Bot
parent 119558b6a2
commit e0faf8c3e9
2 changed files with 3 additions and 4 deletions

View File

@ -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`;

View File

@ -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`;