fix(repo): ignore failed daemon reset on e2e tests (#16902)

This commit is contained in:
Miroslav Jonaš 2023-05-10 10:34:09 +02:00 committed by GitHub
parent ec22b7e540
commit 6aac7ba04b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,11 +509,13 @@ export function cleanupProject({
}: RunCmdOpts & { skipReset?: boolean } = {}) { }: RunCmdOpts & { skipReset?: boolean } = {}) {
if (isCI) { if (isCI) {
// Stopping the daemon is not required for tests to pass, but it cleans up background processes // Stopping the daemon is not required for tests to pass, but it cleans up background processes
if (!skipReset) { try {
runCLI('reset', opts); if (!skipReset) {
} runCLI('reset', opts);
}
} catch {} // ignore crashed daemon
try { try {
removeSync(tmpProjPath()); removeSync(tmpProjPath());
} catch (e) {} } catch {}
} }
} }