Skip to content

Commit

Permalink
fix(repo): ignore failed daemon reset on e2e tests (#16902)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored May 10, 2023
1 parent ec22b7e commit 6aac7ba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e/utils/create-project-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,13 @@ export function cleanupProject({
}: RunCmdOpts & { skipReset?: boolean } = {}) {
if (isCI) {
// Stopping the daemon is not required for tests to pass, but it cleans up background processes
if (!skipReset) {
runCLI('reset', opts);
}
try {
if (!skipReset) {
runCLI('reset', opts);
}
} catch {} // ignore crashed daemon
try {
removeSync(tmpProjPath());
} catch (e) {}
} catch {}
}
}

0 comments on commit 6aac7ba

Please sign in to comment.