test(server): stabilize approval teardown (#1621)

This commit is contained in:
Luyu Cheng 2026-07-13 21:35:17 +08:00 committed by GitHub
parent b2daa405f0
commit 09c05346a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/server": patch
---
Stabilize server approval end-to-end test cleanup after daemon shutdown.

View file

@ -58,8 +58,8 @@ afterEach(async () => {
// ignore
}
server = undefined;
rmSync(tmpDir, { recursive: true, force: true });
rmSync(bridgeHome, { recursive: true, force: true });
rmSync(tmpDir, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });
rmSync(bridgeHome, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });
});
async function bootDaemon(): Promise<RunningServer> {