mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: harden ci timing cleanup
This commit is contained in:
@@ -440,7 +440,7 @@ describe("browser chrome helpers", () => {
|
||||
wsPath: "/devtools/browser/stale-diagnostic",
|
||||
onConnection: (wss) => wss.on("connection", (_ws) => {}),
|
||||
run: async (baseUrl) => {
|
||||
const diagnostic = await diagnoseChromeCdp(baseUrl, 300, 5);
|
||||
const diagnostic = await diagnoseChromeCdp(baseUrl, 300, 50);
|
||||
expect(diagnostic).toMatchObject({
|
||||
ok: false,
|
||||
code: "websocket_health_command_timeout",
|
||||
|
||||
@@ -15,6 +15,6 @@ export function writeJsonFile(filePath: string, value: unknown): void {
|
||||
|
||||
export function cleanupTempDirs(tempDirs: string[]): void {
|
||||
for (const dir of tempDirs.splice(0)) {
|
||||
fs.rmSync(dir, { recursive: true, force: true });
|
||||
fs.rmSync(dir, { recursive: true, force: true, maxRetries: 5, retryDelay: 20 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user