Skip to content

Commit e0faf8c

Browse files
watildenodejs-github-bot
authored andcommitted
test: replace common port with specific number
PR-URL: #40344 Fixes: #40336 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
1 parent 119558b commit e0faf8c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/parallel/test-net-connect-options-invalid.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const common = require('../common');
2+
require('../common');
33
const assert = require('assert');
44
const net = require('net');
55

@@ -11,7 +11,7 @@ const net = require('net');
1111
];
1212
invalidKeys.forEach((invalidKey) => {
1313
const option = {
14-
...common.localhostIPv4,
14+
port: 8080,
1515
[invalidKey]: true
1616
};
1717
const message = `The property 'options.${invalidKey}' is not supported. Received true`;

test/parallel/test-socket-options-invalid.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const common = require('../common');
2+
require('../common');
33
const assert = require('assert');
44
const net = require('net');
55

@@ -11,7 +11,6 @@ const net = require('net');
1111
];
1212
invalidKeys.forEach((invalidKey) => {
1313
const option = {
14-
...common.localhostIPv4,
1514
[invalidKey]: true
1615
};
1716
const message = `The property 'options.${invalidKey}' is not supported. Received true`;

0 commit comments

Comments
 (0)