mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: unflake "should report browser close signal 2" (#30681)
This commit is contained in:
parent
c7e7a7ef56
commit
cadfd9c88e
@ -64,9 +64,9 @@ test.describe('signals', () => {
|
|||||||
const pid = await remoteServer.out('pid');
|
const pid = await remoteServer.out('pid');
|
||||||
process.kill(-pid, 'SIGKILL');
|
process.kill(-pid, 'SIGKILL');
|
||||||
if (isMac && browserName === 'webkit' && parseInt(os.release(), 10) > 22 && os.arch() === 'arm64') {
|
if (isMac && browserName === 'webkit' && parseInt(os.release(), 10) > 22 && os.arch() === 'arm64') {
|
||||||
// WebKit on newer macOS exits differently.
|
// WebKit on newer macOS exits sometimes with exit code, sometimes with signal.
|
||||||
expect(await remoteServer.out('exitCode')).toBe('137');
|
expect('exitCode:' + await remoteServer.out('exitCode') +
|
||||||
expect(await remoteServer.out('signal')).toBe('null');
|
'signal:' + await remoteServer.out('signal')).toMatch(/exitCode:137|signal:SIGKILL/);
|
||||||
} else {
|
} else {
|
||||||
expect(await remoteServer.out('exitCode')).toBe('null');
|
expect(await remoteServer.out('exitCode')).toBe('null');
|
||||||
expect(await remoteServer.out('signal')).toBe('SIGKILL');
|
expect(await remoteServer.out('signal')).toBe('SIGKILL');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user