summaryrefslogtreecommitdiff
path: root/tests/unit/serve_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-26 22:58:28 +0100
committerGitHub <noreply@github.com>2024-08-26 23:58:28 +0200
commitba58628601057c6f996cbad287fcfbe353872368 (patch)
tree5642806d3aed1d46eab233511ef8a929cf0c51d3 /tests/unit/serve_test.ts
parent631d931973fbb7d2e01e1aeb87a33dd9d63ec38e (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.ts3
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,