Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(connect): unblock hung launchServer teardown with SIGKILL fallback (#42148)
microsoft-playwright-automation[bot]e51e5b5a3d4e
diff --git a/tests/config/remoteServer.ts b/tests/config/remoteServer.tsindex b541628da0..fc334af94d 100644--- a/tests/config/remoteServer.ts+++ b/tests/config/remoteServer.ts@@ -165,7 +165,12 @@ export class RemoteServer implements PlaywrightServer {await this._browser.close();this._browser = undefined;}- await this._process.kill('SIGINT');- await this.childExitCode();+ void this._process.kill('SIGINT');+ const killTimer = setTimeout(() => void this._process.kill('SIGINT'), 30000);+ try {+ await this.childExitCode();+ } finally {+ clearTimeout(killTimer);+ }}}