mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 10:59:39 +00:00
test: dedupe realtime talk mock read
This commit is contained in:
parent
98e6519878
commit
8560bd845c
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ describe("GoogleLiveRealtimeTalkTransport", () => {
|
|||
]);
|
||||
expect(onTranscript).toHaveBeenCalledWith({ role: "user", text: "hello", final: true });
|
||||
expect(onTranscript).toHaveBeenCalledWith({ role: "assistant", text: "hi", final: false });
|
||||
const audioEvent = onTalkEvent.mock.calls.at(2)?.[0];
|
||||
const audioEvent = onTalkEvent.mock.calls[2]?.[0];
|
||||
expect(audioEvent?.payload).toStrictEqual({ byteLength: 4, mimeType: "audio/pcm;rate=24000" });
|
||||
expect(audioEvent?.sessionId).toBe("main:google:provider-websocket");
|
||||
expect(audioEvent?.transport).toBe("provider-websocket");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue