fix: use startedAt instead of createdAt in trigger integration test

AgentRun model has startedAt, not createdAt. Codex introduced this
typo when refactoring the trigger queue integration tests.
This commit is contained in:
2026-07-08 23:30:28 +08:00
parent a0df8b6bcf
commit 79505e6d44
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Hello, World!
+1 -1
View File
@@ -240,7 +240,7 @@ describe("trigger full lifecycle (integration)", () => {
secondRun.resolve(completedRunResult("second done", "sdk-session-second")); secondRun.resolve(completedRunResult("second done", "sdk-session-second"));
await vi.waitFor(async () => { await vi.waitFor(async () => {
const runs = await prisma.agentRun.findMany({ orderBy: { createdAt: "asc" } }); const runs = await prisma.agentRun.findMany({ orderBy: { startedAt: "asc" } });
expect(runs).toHaveLength(2); expect(runs).toHaveLength(2);
expect(runs.every((run) => run.status === "COMPLETED")).toBe(true); expect(runs.every((run) => run.status === "COMPLETED")).toBe(true);
}); });