forked from bai/curriculum-project-hub
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:
@@ -0,0 +1 @@
|
|||||||
|
Hello, World!
|
||||||
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user