mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 15:14:45 +00:00
test: use immediate for realtime consult event
This commit is contained in:
@@ -8,7 +8,7 @@ describe("RealtimeTalkSession consult handoff", () => {
|
||||
let listener: ((event: { event: string; payload?: unknown }) => void) | undefined;
|
||||
const request = vi.fn(async (method: string, _params: unknown) => {
|
||||
if (method === "talk.client.toolCall") {
|
||||
window.setTimeout(() => {
|
||||
setImmediate(() => {
|
||||
listener?.({
|
||||
event: "chat",
|
||||
payload: {
|
||||
@@ -17,7 +17,7 @@ describe("RealtimeTalkSession consult handoff", () => {
|
||||
message: { text: "Basement lights are off." },
|
||||
},
|
||||
});
|
||||
}, 0);
|
||||
});
|
||||
return { runId: "run-1" };
|
||||
}
|
||||
throw new Error(`unexpected request: ${method}`);
|
||||
|
||||
Reference in New Issue
Block a user