mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
test(gateway): include aborted chat run state in mock
This commit is contained in:
@@ -8,6 +8,7 @@ function createMockContext() {
|
||||
const broadcast = vi.fn();
|
||||
const nodeSendToSession = vi.fn();
|
||||
const chatAbortControllers = new Map();
|
||||
const chatAbortedRuns = new Map();
|
||||
const agentRunSeq = new Map<string, number>();
|
||||
const dedupe = new Map();
|
||||
|
||||
@@ -15,6 +16,7 @@ function createMockContext() {
|
||||
broadcast,
|
||||
nodeSendToSession,
|
||||
chatAbortControllers,
|
||||
chatAbortedRuns,
|
||||
agentRunSeq,
|
||||
dedupe,
|
||||
getRuntimeConfig: () => ({ agents: { list: [{ id: "main", default: true }] } }),
|
||||
|
||||
Reference in New Issue
Block a user