mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 00:00:23 +00:00
test(cron): await persistence before temp cleanup
This commit is contained in:
@@ -279,6 +279,8 @@ describe("Cron issue regressions", () => {
|
|||||||
|
|
||||||
resolveRun?.({ status: "ok", summary: "done" });
|
resolveRun?.({ status: "ok", summary: "done" });
|
||||||
await finished.promise;
|
await finished.promise;
|
||||||
|
// Barrier: ensure timer tick finished persisting state before cleanup.
|
||||||
|
await cron.list({ includeDisabled: true });
|
||||||
|
|
||||||
cron.stop();
|
cron.stop();
|
||||||
await store.cleanup();
|
await store.cleanup();
|
||||||
|
|||||||
Reference in New Issue
Block a user