refactor(server): canonicalize service API (#31049)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user