From caa941a575934ee41aeac098d4317148b76000cf Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Sun, 22 Dec 2024 12:44:06 +0100 Subject: [PATCH] keep child open --- tests/playwright-test/web-server.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright-test/web-server.spec.ts b/tests/playwright-test/web-server.spec.ts index 1508ea22df..2d2a9ce76e 100644 --- a/tests/playwright-test/web-server.spec.ts +++ b/tests/playwright-test/web-server.spec.ts @@ -755,7 +755,7 @@ test.describe('kill option', () => { 'child.js': ` process.on('SIGINT', () => { console.log('%%childprocess received SIGINT'); setTimeout(() => process.exit(), 10) }) process.on('SIGTERM', () => { console.log('%%childprocess received SIGTERM'); setTimeout(() => process.exit(), 10) }) - process.on('message', () => {}) // somehow, this line is needed to receive signals in a forked child process + setTimeout(() => {}, 100000) // prevent child from exiting `, 'web-server.js': ` require("node:child_process").fork('./child.js', { silent: false })