From 126f968b68eee154023b98f456f81271f0259ce2 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 1 Aug 2026 19:44:57 +0000 Subject: [PATCH] test: classify live run route fixtures Co-Authored-By: Paperclip --- .../__tests__/agent-live-run-routes.test.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/server/src/__tests__/agent-live-run-routes.test.ts b/server/src/__tests__/agent-live-run-routes.test.ts index f611dfa66ef..d3da7d8a98d 100644 --- a/server/src/__tests__/agent-live-run-routes.test.ts +++ b/server/src/__tests__/agent-live-run-routes.test.ts @@ -219,6 +219,8 @@ describe("agent live run routes", () => { mockHeartbeatService.getRunLogAccess.mockResolvedValue({ id: "run-1", companyId: "company-1", + scopeKind: "company", + issueId: null, logStore: "local_file", logRef: "logs/run-1.ndjson", }); @@ -352,6 +354,8 @@ describe("agent live run routes", () => { expect(mockHeartbeatService.readLog).toHaveBeenCalledWith({ id: "run-1", companyId: "company-1", + scopeKind: "company", + issueId: null, logStore: "local_file", logRef: "logs/run-1.ndjson", }, { @@ -391,7 +395,8 @@ describe("agent live run routes", () => { lastOutputStream: null, lastOutputBytes: 0, processStartedAt: null, - issueId: "issue-1", + scopeKind: "company", + issueId: null, })); const { db, limit } = createLiveRunsDbStub(rows); @@ -430,7 +435,8 @@ describe("agent live run routes", () => { lastOutputStream: null, lastOutputBytes: 0, processStartedAt: null, - issueId: "issue-1", + scopeKind: "company", + issueId: null, })); const { db, limit } = createLiveRunsDbStub(rows); @@ -468,7 +474,8 @@ describe("agent live run routes", () => { lastOutputStream: null, lastOutputBytes: 0, processStartedAt: null, - issueId: "issue-1", + scopeKind: "company", + issueId: null, })); const selectCalls: Array> = []; @@ -525,7 +532,8 @@ describe("agent live run routes", () => { lastOutputStream: null, lastOutputBytes: 0, processStartedAt: null, - issueId: "issue-1", + scopeKind: "company", + issueId: null, })); const recentRows = Array.from({ length: 4 }, (_, index) => ({ id: `run-recent-${index}`, @@ -550,7 +558,8 @@ describe("agent live run routes", () => { lastOutputStream: null, lastOutputBytes: 0, processStartedAt: null, - issueId: "issue-1", + scopeKind: "company", + issueId: null, })); let selectCallCount = 0;