Skip to content

Commit 304d498

Browse files
[miniflare] Point HTTPS-CA test at a stable URL (#13973)
1 parent 1f4455a commit 304d498

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/miniflare/test/index.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,11 +1566,16 @@ test("Miniflare: python modules", async ({ expect }) => {
15661566
test("Miniflare: HTTPS fetches using browser CA certificates", async ({
15671567
expect,
15681568
}) => {
1569+
// example.com is intentionally maintained as a stable test endpoint by IANA.
1570+
// We previously fetched https://workers.cloudflare.com/cf.json but that URL
1571+
// now 301s to https://www.cloudflare.com/cf.json which 404s, so the test
1572+
// was effectively asserting on an unintended 404 path rather than HTTPS CA
1573+
// trust.
15691574
const mf = new Miniflare({
15701575
modules: true,
15711576
script: `export default {
15721577
fetch() {
1573-
return fetch("https://workers.cloudflare.com/cf.json");
1578+
return fetch("https://example.com/");
15741579
}
15751580
}`,
15761581
});

0 commit comments

Comments
 (0)