дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
test(smoke): retry the temp-directory cleanup on ENOTEMPTY (#1838)
Language servers and debug adapters still write into the fixture's temp dir as the test's afterEach tears it down, so a bare rmSync raced them and failed the suite on ENOTEMPTY (Language smoke kotlin, java). Give the removal maxRetries + retryDelay so a few late writes can't flake the job.
Цей коміт міститься в:
1 джерело
b54a745d6d
коміт
798da979a1
2 files changed
+2
-2
No files matched your search
@@ -109,7 +109,7 @@ afterEach(() => {
|
||||
resetRuns();
|
||||
disconnect?.();
|
||||
server?.close();
|
||||
if (base) rmSync(base, { recursive: true, force: true });
|
||||
if (base) rmSync(base, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 });
|
||||
});
|
||||
|
||||
async function open(c: Case): Promise<string> {
|
||||
|
||||
@@ -133,7 +133,7 @@ afterEach(() => {
|
||||
resetRuns();
|
||||
disconnect?.();
|
||||
server?.close();
|
||||
if (base) rmSync(base, { recursive: true, force: true });
|
||||
if (base) rmSync(base, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 });
|
||||
});
|
||||
|
||||
async function open(c: Case): Promise<string> {
|
||||
|
||||
Reference in new issue
Заблокувати користувача