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.
Цей коміт міститься в:
arookieofc authored and GitHub committed 2026-11-06 22:10:30 +08:00
1 джерело b54a745d6d
коміт 798da979a1
2 files changed
+2 -2

No files matched your search

+1 -1
Переглянути файл
@@ -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> {
+1 -1
Переглянути файл
@@ -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> {