mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
test(server): retry removing the restart test's directories on Windows
Windows reported EBUSY removing the agent directory right after the second daemon closed. Retry the removal as the test daemon's own cleanup does.
This commit is contained in:
@@ -142,10 +142,9 @@ describe("paseo daemon bootstrap", () => {
|
||||
await second.close();
|
||||
}
|
||||
} finally {
|
||||
await Promise.all([
|
||||
rm(paseoHomeRoot, { recursive: true, force: true }),
|
||||
rm(agentCwd, { recursive: true, force: true }),
|
||||
]);
|
||||
// Windows can hold a closed daemon's directory handles briefly, as in `removeDirs`.
|
||||
const retry = { recursive: true, force: true, maxRetries: 3, retryDelay: 100 };
|
||||
await Promise.all([rm(paseoHomeRoot, retry), rm(agentCwd, retry)]);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user