test: use common.PORT instead of hardcoded port number

PR-URL: https://github.com/nodejs/node/pull/39298
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott authored and Michaël Zasso committed 2021-09-04 12:51:19 +02:00
1 parent f467e2a0c5
commit a45bf2f1a0
1 file changed
+1 -1
@@ -21,7 +21,7 @@ const { createServer } = require('net');
// Launch w/ invalid host:port.
{
const cli = startCLI(['localhost:914']);
const cli = startCLI([`localhost:${common.PORT}`]);
cli.quit()
.then((code) => {
assert.match(