diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-24 13:55:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-24 13:55:08 +0200 |
commit | 7a8df8f00cce29605b2d74cb32b255d482f29dda (patch) | |
tree | 9ede24aab3a1b15834604fab8f63b96a7cf7c3d4 | |
parent | 65d9bfb53361bfce6dc594c6a9df92c017dea6cb (diff) |
fix(cli): Don't use hardcoded port 4501 in serve test (#19599)
-rw-r--r-- | cli/tests/unit/serve_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/unit/serve_test.ts b/cli/tests/unit/serve_test.ts index 8efc1ad20..cfc2710f6 100644 --- a/cli/tests/unit/serve_test.ts +++ b/cli/tests/unit/serve_test.ts @@ -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 } |