Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bazel/integration/test_runner/runner.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import fs from 'node:fs/promises';
import {rmSync, promises as fs} from 'node:fs';
import path from 'node:path';
import os from 'node:os';

Expand Down Expand Up @@ -88,7 +88,11 @@ export class TestRunner {
// We keep the temporary directory on disk if the users wants to debug the test.
if (!this.isTestDebugMode) {
debug('Deleting the integration test temporary directory..');
await fs.rm(testTmpDir, {force: true, recursive: true, maxRetries: 3});
try {
rmSync(testTmpDir, {force: true, recursive: true, maxRetries: 3});
} catch (e) {
console.error(`Failed to delete temporary directory: ${testTmpDir}`);
}
}
}
}
Expand Down