FN-8136: update cron-runner backup error expectations
Align cron-runner backup failure assertions with the current PostgreSQL project-state error wording. - Update legacy command backup failure expectation - Update command-step backup failure expectation Files changed: packages/engine/src/__tests__/cron-runner.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Fusion-Task-Id: FN-8136 Fusion-Task-Lineage: 8f182491-1ded-43bb-b4ca-02485dce656a Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
This commit is contained in:
@@ -2229,7 +2229,7 @@ describe("CronRunner", () => {
|
||||
.executeLegacyCommand(schedule, new Date().toISOString());
|
||||
|
||||
expect(runResult.success).toBe(false);
|
||||
expect(runResult.error).toBe("project DB run backup command failed; source: /tmp/.fusion/fusion.db; cause: unknown error");
|
||||
expect(runResult.error).toBe("project PostgreSQL run backup command failed; project state: /tmp/.fusion; cause: unknown error");
|
||||
expect(runResult.output).toBe("");
|
||||
});
|
||||
|
||||
@@ -2249,7 +2249,7 @@ describe("CronRunner", () => {
|
||||
.executeCommandStep(step, 0, 30_000, new Date().toISOString());
|
||||
|
||||
expect(stepResult.success).toBe(false);
|
||||
expect(stepResult.error).toBe("project DB run backup command failed; source: /tmp/.fusion/fusion.db; cause: unknown error");
|
||||
expect(stepResult.error).toBe("project PostgreSQL run backup command failed; project state: /tmp/.fusion; cause: unknown error");
|
||||
expect(stepResult.output).toBe("");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user