smoke - do not fail build when unable to delete workspace folder (workaround #137725)

This commit is contained in:
Benjamin Pasero 2021-11-29 08:49:37 +01:00
parent a5efd80ee0
commit c42793d035
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -344,7 +344,12 @@ after(async function () {
await promisify(ncp)(logsDir, destLogsDir);
}
await new Promise<void>((resolve, reject) => rimraf(testDataPath, { maxBusyTries: 50 }, error => error ? reject(error) : resolve()));
try {
await new Promise<void>((resolve, reject) => rimraf(testDataPath, { maxBusyTries: 10 }, error => error ? reject(error) : resolve()));
} catch (error) {
// TODO@tyriar TODO@meganrogge https://github.com/microsoft/vscode/issues/137725
console.error(`Unable to delete smoke test workspace: ${error}. This indicates some process is locking the workspace folder.`);
}
});
describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {