revert test changes
This commit is contained in:
parent
746bb68096
commit
c8b2ce08c1
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue