Skip to content

Commit

Permalink
Fix group call tests getting stuck (#2689)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored Sep 22, 2022
1 parent 72a6ec0 commit 2a0ffe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/unit/webrtc/groupCall.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 2a0ffe1

Please sign in to comment.