mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-11 09:47:40 +00:00
test(server): stabilize approval teardown (#1621)
This commit is contained in:
parent
b2daa405f0
commit
09c05346a8
2 changed files with 7 additions and 2 deletions
5
.changeset/stabilize-approval-test-cleanup.md
Normal file
5
.changeset/stabilize-approval-test-cleanup.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@moonshot-ai/server": patch
|
||||
---
|
||||
|
||||
Stabilize server approval end-to-end test cleanup after daemon shutdown.
|
||||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue