From 2a0ffe12231b57f67dc7cd1ca18b8b4e7ad6cc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 22 Sep 2022 17:06:01 +0200 Subject: [PATCH] Fix group call tests getting stuck (#2689) --- spec/unit/webrtc/groupCall.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/unit/webrtc/groupCall.spec.ts b/spec/unit/webrtc/groupCall.spec.ts index a08c53f1d..1c2508766 100644 --- a/spec/unit/webrtc/groupCall.spec.ts +++ b/spec/unit/webrtc/groupCall.spec.ts @@ -161,11 +161,17 @@ describe('Group Call', function() { }); it("does not initialize local call feed, if it already is", async () => { + room.currentState.members[FAKE_USER_ID_1] = { + userId: FAKE_USER_ID_1, + } as unknown as RoomMember; + await groupCall.initLocalCallFeed(); jest.spyOn(groupCall, "initLocalCallFeed"); await groupCall.enter(); expect(groupCall.initLocalCallFeed).not.toHaveBeenCalled(); + + groupCall.leave(); }); it("sends state event to room when creating", async () => {