You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the webServer option in a playwright config, the playwright test runner hangs and won't exit without CTRL-C.
// playwright.config.jsimport{defineConfig}from"@playwright/test";exportdefaultdefineConfig({webServer: {// without this option, it exits cleanlycommand: `deno run -A server.ts`,},});
The root cause turned out to be us not implementing the detached option in child_process.spawn.
Creating a detached process makes a new process group, which then you can kill with process.kill(-child.pid) to kill the whole group. Since we hadn't actually detached the process, the kill call was throwing (because the negative pid signifies the process group, which didn't exist) and playwright was catching the error and didn't have a fallback. So the subprocess was never actually killed.
When using the
webServer
option in a playwright config, the playwright test runner hangs and won't exit withoutCTRL-C
.Repro: https://github.com/nathanwhit/deno-playwright-hang-repro. Run
deno task test
The text was updated successfully, but these errors were encountered: