From f29d58e87fd247bfc7421fc40b8ac2d45247eda1 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 23 Feb 2023 14:49:18 -0800 Subject: [PATCH] chore: remove test that sends SIGTERM to the browser (#21171) Fixes #21168. --- tests/library/signals.spec.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/library/signals.spec.ts b/tests/library/signals.spec.ts index 02a1a8b83d..8a684543b3 100644 --- a/tests/library/signals.spec.ts +++ b/tests/library/signals.spec.ts @@ -56,18 +56,6 @@ test('should remove temp dir on process.exit', async ({ startRemoteServer, serve test.describe('signals', () => { 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 }) => { const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE }); const pid = await remoteServer.out('pid');