Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

test(web): 正确结算离页后已经处理的转发请求

longmeidao7b3b1d6e4b39
diff --git a/frontend/e2e/http-configuration.test.ts b/frontend/e2e/http-configuration.test.ts
index 6ae69ad2e..af139eb90 100644
--- a/frontend/e2e/http-configuration.test.ts
+++ b/frontend/e2e/http-configuration.test.ts
@@ -15,7 +15,9 @@ async function forwardHttp(page: Page, origin: string, service: string, signal:
await route.fulfill({ response });
} catch (error) {
if (signal.aborted && error instanceof Error && error.name === 'AbortError' && error.cause === signal.reason) {
- await route.abort();
+ await route.abort().catch(error => {
+ if (!/already handled|disposed|closed/i.test(String(error))) throw error;
+ });
return;
}
if (!/already handled|disposed|closed/i.test(String(error))) throw error;