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 2021-07-07 09:45:04 -07:00
parent ff975fe1c6
commit debdc1dbb6
1 changed files with 1 additions and 1 deletions

View File

@ -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(