Skip to content

Commit 71b0e7a

Browse files
authored
Don't fail test if we can't cleanup (#14389)
1 parent f7f0479 commit 71b0e7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration-tests/globalSetup.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export async function setup() {
7474
export async function teardown() {
7575
// Cleanup the test run directory unless KEEP_OUTPUT is set
7676
if (process.env['KEEP_OUTPUT'] !== 'true' && runDir) {
77-
await rm(runDir, { recursive: true, force: true });
77+
try {
78+
await rm(runDir, { recursive: true, force: true });
79+
} catch (e) {
80+
console.warn('Failed to clean up test run directory:', e);
81+
}
7882
}
7983
}

0 commit comments

Comments
 (0)