diff --git a/tests/e2e/legacy-failure-continuation.spec.ts b/tests/e2e/legacy-failure-continuation.spec.ts index 2fc7d49508d..812452d3a86 100644 --- a/tests/e2e/legacy-failure-continuation.spec.ts +++ b/tests/e2e/legacy-failure-continuation.spec.ts @@ -150,7 +150,9 @@ for (const action of ["task_retry", "retry_after_reload", "inbox_retry", "messag expect(completed).toMatchObject({ status: "done", executionBlocker: null }); const runs = await db.select().from(heartbeatRuns).where(and(eq(heartbeatRuns.companyId, company.id), eq(heartbeatRuns.agentId, agent.id))); expect(runs.filter(run => run.id !== sourceRunId)).toHaveLength(1); - expect(runs.find(run => run.id === sourceRunId)).toMatchObject({ status: "failed", resultJson: null }); + const source = runs.find(run => run.id === sourceRunId)!; + expect(source.status).toBe("failed"); + expect(Object.keys(source.resultJson ?? {}).filter(key => key !== "freshContinuationSupersededAt")).toEqual([]); const prompts = await readFile(path.join(root, "prompts"), "utf8"); if (action === "queued_retry" || action === "automatic_message_on_reactivation") { expect(prompts).toContain("Approved");