Skip to content

Commit 43706f3

Browse files
committed
fix _next/image test
Root cause is fixed at cloudflare/workers-sdk#9935
1 parent 7968508 commit 43706f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/playground14/e2e/cloudflare.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ test.describe("playground/cloudflare", () => {
2828

2929
test("400 when fetching an image disallowed by remotePatterns", async ({ page }) => {
3030
const res = await page.request.get("/_next/image?url=https://avatars.githubusercontent.com/u/248817");
31-
// The request should be blocked by either the remote patterns or the asset worker
32-
const isBlockedByRemotePattern = res.status() === 400;
33-
const isBlockedByAssetWorker = res.status() === 403;
34-
expect(isBlockedByRemotePattern || isBlockedByAssetWorker).toBe(true);
31+
expect(res.status()).toBe(400);
3532
});
3633
});
3734

0 commit comments

Comments
 (0)