mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05: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" });
|
||||
await finished.promise;
|
||||
// Barrier: ensure timer tick finished persisting state before cleanup.
|
||||
await cron.list({ includeDisabled: true });
|
||||
|
||||
cron.stop();
|
||||
await store.cleanup();
|
||||
|
||||
Reference in New Issue
Block a user