mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 05:32:53 +00:00
fix(test): restore subagent announce timeout mocks
This commit is contained in:
@@ -25,6 +25,8 @@ let requesterDepthResolver: (sessionKey?: string) => number = () => 0;
|
||||
let subagentSessionRunActive = true;
|
||||
let shouldIgnorePostCompletion = false;
|
||||
let pendingDescendantRuns = 0;
|
||||
const isEmbeddedPiRunActiveMock = vi.fn((_sessionId: string) => false);
|
||||
const waitForEmbeddedPiRunEndMock = vi.fn(async (_sessionId: string, _timeoutMs?: number) => true);
|
||||
let fallbackRequesterResolution: {
|
||||
requesterSessionKey: string;
|
||||
requesterOrigin?: { channel?: string; to?: string; accountId?: string };
|
||||
@@ -214,6 +216,8 @@ describe("subagent announce timeout config", () => {
|
||||
subagentSessionRunActive = true;
|
||||
shouldIgnorePostCompletion = false;
|
||||
pendingDescendantRuns = 0;
|
||||
isEmbeddedPiRunActiveMock.mockReset().mockReturnValue(false);
|
||||
waitForEmbeddedPiRunEndMock.mockReset().mockResolvedValue(true);
|
||||
fallbackRequesterResolution = null;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user