diff --git a/tests/installation/playwright-cdn.spec.ts b/tests/installation/playwright-cdn.spec.ts index 4de4b3feea..fcfb8afffd 100644 --- a/tests/installation/playwright-cdn.spec.ts +++ b/tests/installation/playwright-cdn.spec.ts @@ -93,7 +93,7 @@ test(`npx playwright install should not hang when CDN closes the connection`, as expectToExitWithError: true }); expect(retryCount).toBe(5); - expect([...result.matchAll(/code: 'ECONNRESET'/g)]).toHaveLength(5); + expect([...result.matchAll(/Download failed: server closed connection/g)]).toHaveLength(5); } finally { await new Promise(resolve => server.close(resolve)); } @@ -123,7 +123,7 @@ test(`npx playwright install should not hang when CDN TCP connection stalls`, as expectToExitWithError: true }); expect(retryCount).toBe(5); - expect([...result.matchAll(/code: 'ECONNRESET'/g)]).toHaveLength(5); + expect([...result.matchAll(/timed out after/g)]).toHaveLength(5); } finally { for (const socket of socketsToDestroy) socket.destroy();