Forward stdio and cause test failure
This commit is contained in:
parent
e462d98fc6
commit
ee7b0e6188
|
|
@ -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`);
|
execSync(`taskkill /pid ${remoteServer.child().pid} /T /F`, { stdio: 'inherit' });
|
||||||
else
|
else
|
||||||
process.kill(remoteServer.child().pid);
|
process.kill(remoteServer.child().pid);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -40,6 +40,7 @@ test('should close the browser when the node process closes', async ({ startRemo
|
||||||
// We might not get browser exitCode in time when killing the parent node process,
|
// We might not get browser exitCode in time when killing the parent node process,
|
||||||
// so we don't check it here.
|
// so we don't check it here.
|
||||||
expect(await remoteServer.childExitCode()).toBe(isWindows ? 1 : 0);
|
expect(await remoteServer.childExitCode()).toBe(isWindows ? 1 : 0);
|
||||||
|
expect(false).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should remove temp dir on process.exit', async ({ startRemoteServer, server, platform }, testInfo) => {
|
test('should remove temp dir on process.exit', async ({ startRemoteServer, server, platform }, testInfo) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue