refactor(server): canonicalize service API (#31049)

This commit is contained in:
Dax
2026-06-06 23:27:28 -04:00
committed by GitHub
parent 53ff1b57c9
commit fe0c4f8c74
388 changed files with 7103 additions and 4092 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ afterAll(async () => {
await sleep(100)
return fs.rm(dir, { recursive: true, force: true }).catch((error) => {
if (!busy(error)) throw error
if (left <= 1) throw error
if (left <= 1 && process.platform !== "win32") throw error
if (left <= 1) return
return rm(left - 1)
})
}