Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

chore(tests): the orphan-adoption test retries its temp-dir delete

esengine625c6207998a
diff --git a/pipeline/tests/adopt-orphan-race.test.ts b/pipeline/tests/adopt-orphan-race.test.ts
index 22fa280c8..3628db7b2 100644
--- a/pipeline/tests/adopt-orphan-race.test.ts
+++ b/pipeline/tests/adopt-orphan-race.test.ts
@@ -17,7 +17,7 @@ import { adoptOrphan } from '../src/assets/assetMeta';
let dir: string;
beforeEach(async () => { dir = await mkdtemp(path.join(tmpdir(), 'es-adopt-')); });
-afterEach(async () => { await rm(dir, { recursive: true, force: true }); });
+afterEach(async () => { await rm(dir, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 }); });
describe('adopting an orphan', () => {
it('leaves a sidecar that appeared after it looked', async () => {