revert test changes

This commit is contained in:
Simon Knott 2025-01-21 11:44:36 +01:00
parent 746bb68096
commit c8b2ce08c1
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -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();