Skip to content

Commit 2f21cd3

Browse files
committed
fix(sdk): drop invalid status field from mockChatAgent OOM-retry test
The TaskRunExecutionAttempt type only includes `number` and `startedAt`. The `status: "EXECUTING"` field I included was invalid. tsc passed on my local test runner (vitest uses esbuild, not tsc) but the typecheck CI step caught it. Drop the field, keeping the override to just the two supported keys.
1 parent b4fb7a9 commit 2f21cd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/trigger-sdk/test/mockChatAgent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ describe("mockChatAgent", () => {
15261526
const harness = mockChatAgent(agent, {
15271527
chatId: "oom-retry-skip",
15281528
taskContext: {
1529-
ctx: { attempt: { number: 2, startedAt: new Date(0), status: "EXECUTING" } },
1529+
ctx: { attempt: { number: 2, startedAt: new Date(0) } },
15301530
},
15311531
});
15321532
try {

0 commit comments

Comments
 (0)