diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-26 22:58:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 23:58:28 +0200 |
commit | ba58628601057c6f996cbad287fcfbe353872368 (patch) | |
tree | 5642806d3aed1d46eab233511ef8a929cf0c51d3 /tests/unit/serve_test.ts | |
parent | 631d931973fbb7d2e01e1aeb87a33dd9d63ec38e (diff) |
Reland "test: run unit tests with DENO_FUTURE=1" (#25212)
Reverted in https://github.com/denoland/deno/pull/25060
Diffstat (limited to 'tests/unit/serve_test.ts')
-rw-r--r-- | tests/unit/serve_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/serve_test.ts b/tests/unit/serve_test.ts index ea5a7d3ef..fde6c7bee 100644 --- a/tests/unit/serve_test.ts +++ b/tests/unit/serve_test.ts @@ -12,6 +12,7 @@ import { assertThrows, curlRequest, curlRequestWithStdErr, + DENO_FUTURE, execCode, execCode3, fail, @@ -19,7 +20,7 @@ import { } from "./test_util.ts"; // Since these tests may run in parallel, ensure this port is unique to this file -const servePort = 4502; +const servePort = DENO_FUTURE ? 4511 : 4502; const { upgradeHttpRaw, |