mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 11:30:21 +00:00
fix(test): close task registry sqlite after reset
This commit is contained in:
@@ -1337,5 +1337,8 @@ export function resetTaskRegistryForTests(opts?: { persist?: boolean }) {
|
||||
listenerStarted = false;
|
||||
if (opts?.persist !== false) {
|
||||
persistTaskRegistry();
|
||||
// Close the sqlite handle after persisting the empty snapshot so Windows temp-dir
|
||||
// cleanup can remove the state directory without hitting runs.sqlite EBUSY errors.
|
||||
getTaskRegistryStore().close?.();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user