summaryrefslogtreecommitdiff
path: root/cli/tests/unit/fetch_test.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-05-21 21:52:45 +0200
committerGitHub <noreply@github.com>2023-05-21 21:52:45 +0200
commitaddfb0c546f3cd911514591a91a9eef2ce5e3cec (patch)
tree94ded6721e49abfe49ca244ee702f4c12e053ebe /cli/tests/unit/fetch_test.ts
parent6255cf4642f97478fbf05f7b2cff1a1934364983 (diff)
fix(ci): simplify test assertion for http version enforcing with Deno.createHttpClient (#19210)
Diffstat (limited to 'cli/tests/unit/fetch_test.ts')
-rw-r--r--cli/tests/unit/fetch_test.ts14
1 files changed, 2 insertions, 12 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts
index d86795578..08689a2a0 100644
--- a/cli/tests/unit/fetch_test.ts
+++ b/cli/tests/unit/fetch_test.ts
@@ -1532,34 +1532,24 @@ Deno.test(
);
Deno.test(
- {
- permissions: { net: true, read: true },
- // Doesn't pass on linux CI for unknown reasons (works fine locally on linux)
- ignore: Deno.build.os !== "darwin",
- },
+ { permissions: { net: true, read: true } },
async function fetchForceHttp1OnHttp2Server() {
const client = Deno.createHttpClient({ http2: false, http1: true });
await assertRejects(
() => fetch("http://localhost:5549/http_version", { client }),
TypeError,
- "invalid HTTP version parsed",
);
client.close();
},
);
Deno.test(
- {
- permissions: { net: true, read: true },
- // Doesn't pass on linux CI for unknown reasons (works fine locally on linux)
- ignore: Deno.build.os !== "darwin",
- },
+ { permissions: { net: true, read: true } },
async function fetchForceHttp2OnHttp1Server() {
const client = Deno.createHttpClient({ http2: true, http1: false });
await assertRejects(
() => fetch("http://localhost:5548/http_version", { client }),
TypeError,
- "stream closed because of a broken pipe",
);
client.close();
},