0
0
Fork 0
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:
Matt Mastracci 2023-06-24 13:55:08 +02:00 committed by GitHub
parent 65d9bfb533
commit 7a8df8f00c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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