Skip to content

Commit 011c205

Browse files
Trotttargos
authored andcommitted
test: use common.PORT instead of hardcoded number
In sequential/test-https-connect-localport, replace 34567 with common.PORT. PR-URL: #26881 Fixes: #26862 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent 4919e4b commit 011c205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential/test-https-connect-localport.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ const assert = require('assert');
2222
pathname: '/',
2323
port,
2424
family: 4,
25-
localPort: 34567,
25+
localPort: common.PORT,
2626
rejectUnauthorized: false
2727
}, common.mustCall(() => {
28-
assert.strictEqual(req.socket.localPort, 34567);
28+
assert.strictEqual(req.socket.localPort, common.PORT);
2929
assert.strictEqual(req.socket.remotePort, port);
3030
}));
3131
}));

0 commit comments

Comments
 (0)