mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-07 07:58:36 +00:00
test(voice-call): wait for media stream readiness
This commit is contained in:
@@ -202,6 +202,9 @@ describe("MediaStreamHandler security hardening", () => {
|
||||
}),
|
||||
);
|
||||
await flush();
|
||||
await vi.waitFor(() => {
|
||||
expect(talkEvents.some((event) => event.type === "session.ready")).toBe(true);
|
||||
});
|
||||
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user