mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove test that sends SIGTERM to the browser (#21171)
Fixes #21168.
This commit is contained in:
parent
d3e4fc6343
commit
f29d58e87f
@ -56,18 +56,6 @@ test('should remove temp dir on process.exit', async ({ startRemoteServer, serve
|
|||||||
test.describe('signals', () => {
|
test.describe('signals', () => {
|
||||||
test.skip(({ platform }) => platform === 'win32');
|
test.skip(({ platform }) => platform === 'win32');
|
||||||
|
|
||||||
test('should report browser close signal', async ({ startRemoteServer, server, headless }) => {
|
|
||||||
test.skip(!headless, 'Wrong exit code in headed');
|
|
||||||
|
|
||||||
const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });
|
|
||||||
const pid = await remoteServer.out('pid');
|
|
||||||
process.kill(-pid, 'SIGTERM');
|
|
||||||
expect(await remoteServer.out('exitCode')).toBe('null');
|
|
||||||
expect(await remoteServer.out('signal')).toBe('SIGTERM');
|
|
||||||
process.kill(remoteServer.child().pid);
|
|
||||||
await remoteServer.childExitCode();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should report browser close signal 2', async ({ startRemoteServer, server }) => {
|
test('should report browser close signal 2', async ({ startRemoteServer, server }) => {
|
||||||
const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });
|
const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });
|
||||||
const pid = await remoteServer.out('pid');
|
const pid = await remoteServer.out('pid');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user