mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Kill mock backend if frontend failed
This commit is contained in:
parent
d7be24cb1f
commit
7ecd12985e
1 changed files with 2 additions and 1 deletions
|
|
@ -159,7 +159,8 @@ async function runScreenshotGen(expectedPlugin: string | undefined, expectedEntr
|
|||
});
|
||||
|
||||
if (frontendReturn.status !== 0) {
|
||||
throw new Error(`Unable to run frontend, status: ${JSON.stringify(frontendReturn)}`);
|
||||
const killed = mockBackendProcess.kill();
|
||||
throw new Error(`Unable to run frontend, mock backend killed: ${killed}, status: ${JSON.stringify(frontendReturn)}`);
|
||||
}
|
||||
|
||||
console.log("Frontend exited")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue