Skip to content

Commit 70a27bd

Browse files
committed
test(agents): update compaction retry mock
1 parent 251866d commit 70a27bd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/agents/embedded-agent-runner/run/attempt.spawn-workspace.test-support.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,13 @@ vi.mock("../utils.js", () => ({
824824
}));
825825

826826
vi.mock("./compaction-retry-aggregate-timeout.js", () => ({
827+
hasActiveCompactionRetryWork: ({
828+
isCompactionInFlight,
829+
isSessionStreaming,
830+
}: {
831+
isCompactionInFlight: boolean;
832+
isSessionStreaming: boolean;
833+
}) => isCompactionInFlight || isSessionStreaming,
827834
waitForCompactionRetryWithAggregateTimeout: async () => ({
828835
timedOut: false,
829836
aborted: false,

0 commit comments

Comments
 (0)