Skip to content
Snippets Groups Projects
Unverified Commit 7a4ebb5a authored by Oleg Gromov's avatar Oleg Gromov Committed by GitHub
Browse files

Fix handling signals in cleanup (#37022)

parent eff2be2a
Branches
Tags
No related merge requests found
......@@ -31,7 +31,11 @@ const cleanup = async (exitCode = 0) => {
await CypressBackend.stop(server);
}
process.exit(exitCode);
// We might get a signal code instead, which is a string
// and doesn't require process.exit call
if (typeof exitCode === "number") {
process.exit(exitCode);
}
};
const launch = () =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment