From 79505e6d44c24054a32f2f8bdca4e8558350b892 Mon Sep 17 00:00:00 2001 From: Hong Jiarong Date: Wed, 8 Jul 2026 23:30:28 +0800 Subject: [PATCH] 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. --- examples/trial/hello_world.txt | 1 + hub/test/integration/trigger.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 examples/trial/hello_world.txt diff --git a/examples/trial/hello_world.txt b/examples/trial/hello_world.txt new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/examples/trial/hello_world.txt @@ -0,0 +1 @@ +Hello, World! diff --git a/hub/test/integration/trigger.test.ts b/hub/test/integration/trigger.test.ts index d61260a..4302865 100644 --- a/hub/test/integration/trigger.test.ts +++ b/hub/test/integration/trigger.test.ts @@ -240,7 +240,7 @@ describe("trigger full lifecycle (integration)", () => { secondRun.resolve(completedRunResult("second done", "sdk-session-second")); 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.every((run) => run.status === "COMPLETED")).toBe(true); });