test(gateway): deflake temp HOME cleanup
This commit is contained in:
@@ -386,7 +386,12 @@ export function installGatewayTestHooks() {
|
|||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
process.env.HOME = previousHome;
|
process.env.HOME = previousHome;
|
||||||
if (tempHome) {
|
if (tempHome) {
|
||||||
await fs.rm(tempHome, { recursive: true, force: true });
|
await fs.rm(tempHome, {
|
||||||
|
recursive: true,
|
||||||
|
force: true,
|
||||||
|
maxRetries: 20,
|
||||||
|
retryDelay: 25,
|
||||||
|
});
|
||||||
tempHome = undefined;
|
tempHome = undefined;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user