Skip to content

Commit 0a5d8cf

Browse files
Assert cleanup set failures still drive delete attempts
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 8dffb95 commit 0a5d8cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ai/src/chatTransport.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,8 @@ describe("TriggerChatTransport", function () {
23492349
runId: "run_tracking_cleanup_set_failure",
23502350
});
23512351
expect(errors[0]?.error.message).toBe("tracking failed root cause");
2352+
expect(runStore.deleteCalls).toContain("chat-tracking-cleanup-set-failure");
2353+
expect(runStore.get("chat-tracking-cleanup-set-failure")).toBeUndefined();
23522354
});
23532355

23542356
it("preserves consumeTrackingStream failures when cleanup run-store delete throws", async function () {
@@ -2605,6 +2607,8 @@ describe("TriggerChatTransport", function () {
26052607
runId: "run_reconnect_cleanup_set_failure",
26062608
});
26072609
expect(errors[0]?.error.message).toBe("reconnect root cause");
2610+
expect(runStore.deleteCalls).toContain("chat-reconnect-cleanup-set-failure");
2611+
expect(runStore.get("chat-reconnect-cleanup-set-failure")).toBeUndefined();
26082612
});
26092613

26102614
it("preserves reconnect failures when cleanup run-store delete throws", async function () {

0 commit comments

Comments
 (0)