From ccdec2e294c47433a5df3571bd43b2c8415fab5a Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 19 Jun 2026 08:44:35 +0200 Subject: [PATCH] test(tasks): pass temp root into registry helper --- src/tasks/task-registry.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks/task-registry.test.ts b/src/tasks/task-registry.test.ts index a4e8877d35d5..24d0fdfe6428 100644 --- a/src/tasks/task-registry.test.ts +++ b/src/tasks/task-registry.test.ts @@ -432,7 +432,7 @@ function resetTaskRegistryMemoryForTest(opts?: { persist?: boolean }) { } async function withTaskRegistryTempDir( - run: () => Promise, + run: (root: string) => Promise, options?: { durableStore?: boolean }, ): Promise { return await withTempDir({ prefix: "openclaw-task-registry-" }, async (root) => { @@ -443,7 +443,7 @@ async function withTaskRegistryTempDir( configureInMemoryTaskStoresForTests(); } try { - return await run(); + return await run(root); } finally { // Close both sqlite-backed registries before Windows temp-dir cleanup tries to remove them. resetTaskRegistryForTests({ persist: false });