From 08552fc6b9a18c736b6fd3939d8e0b434f5b8302 Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Sun, 31 May 2020 22:13:53 +0200 Subject: fix(fetch): network error on multiple redirects (#5985) --- cli/tests/unit/fetch_test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index 6dfb23390..5fd1cc469 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -245,14 +245,13 @@ unitTest( unitTest( { - // FIXME(bartlomieju): - // The feature below is not implemented, but the test should work after implementation - ignore: true, perms: { net: true }, }, async function fetchWithInfRedirection(): Promise { const response = await fetch("http://localhost:4549/cli/tests"); // will redirect to the same place assertEquals(response.status, 0); // network error + assertEquals(response.type, "error"); + assertEquals(response.ok, false); } ); -- cgit v1.2.3