mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:50:43 +00:00
test: fix gateway session lint
This commit is contained in:
@@ -389,13 +389,13 @@ async function directSessionReq<TPayload = unknown>(
|
||||
broadcastToConnIds: vi.fn(),
|
||||
getSessionEventSubscriberConnIds: () => new Set<string>(),
|
||||
loadGatewayModelCatalog: async () => piSdkMock.models,
|
||||
...(opts?.context ?? {}),
|
||||
...opts?.context,
|
||||
} as never,
|
||||
client: opts?.client ?? null,
|
||||
isWebchatConnect: opts?.isWebchatConnect ?? (() => false),
|
||||
});
|
||||
if (!result) {
|
||||
throw new Error(`${String(method)} did not respond`);
|
||||
throw new Error(`${method} did not respond`);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user