chore: remove test that sends SIGTERM to the browser (#21171)

Fixes #21168.
This commit is contained in:
Dmitry Gozman 2023-02-23 14:49:18 -08:00 committed by GitHub
parent d3e4fc6343
commit f29d58e87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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