Enable logging of Windows taskkill command
This commit is contained in:
parent
bbd55587e4
commit
e462d98fc6
|
|
@ -26,7 +26,7 @@ test('should close the browser when the node process closes', async ({ startRemo
|
||||||
const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });
|
const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });
|
||||||
try {
|
try {
|
||||||
if (isWindows)
|
if (isWindows)
|
||||||
execSync(`taskkill /pid ${remoteServer.child().pid} /T /F`, { stdio: 'ignore' });
|
execSync(`taskkill /pid ${remoteServer.child().pid} /T /F`);
|
||||||
else
|
else
|
||||||
process.kill(remoteServer.child().pid);
|
process.kill(remoteServer.child().pid);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue