mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
fix(cli): Don't use hardcoded port 4501 in serve test (#19599)
This commit is contained in:
parent
65d9bfb533
commit
7a8df8f00c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ Deno.test(
|
|||
async function httpServerUnref() {
|
||||
const [statusCode, _output] = await execCode(`
|
||||
async function main() {
|
||||
const server = Deno.serve({ port: 4501, handler: () => null });
|
||||
const server = Deno.serve({ port: ${servePort}, handler: () => null });
|
||||
server.unref();
|
||||
await server.finished; // This doesn't block the program from exiting
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue