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:
parent
119558b6a2
commit
e0faf8c3e9
@ -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`;
|
||||
|
@ -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`;
|
||||
|
Loading…
Reference in New Issue
Block a user