mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
test(tasks): close flow registry before temp dir cleanup
This commit is contained in:
@@ -175,8 +175,9 @@ async function withTaskRegistryTempDir<T>(run: (root: string) => Promise<T>): Pr
|
||||
try {
|
||||
return await run(root);
|
||||
} finally {
|
||||
// Close the sqlite-backed registry before Windows temp-dir cleanup tries to remove it.
|
||||
// Close both sqlite-backed registries before Windows temp-dir cleanup tries to remove them.
|
||||
resetTaskRegistryForTests();
|
||||
resetTaskFlowRegistryForTests();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user