mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-09 07:25:53 +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" });
|
||||
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