handle unpublish track

This commit is contained in:
David Zhao
2021-01-12 17:07:01 -08:00
parent 7c3b0c5202
commit bd885b1de9
10 changed files with 221 additions and 361 deletions
+3 -2
View File
@@ -80,12 +80,13 @@ func TestRoomJoin(t *testing.T) {
}
})
t.Run("participant removal is broadcasted to others", func(t *testing.T) {
rm := newRoomWithParticipants(t, numParticipants)
t.Run("participant state change is broadcasted to others", func(t *testing.T) {
rm := newRoomWithParticipants(t, 1)
participants := rm.GetParticipants()
p := participants[0].(*typesfakes.FakeParticipant)
rm.RemoveParticipant(p.ID())
p.OnStateChangeArgsForCall(0)(p, livekit.ParticipantInfo_ACTIVE)
time.Sleep(10 * time.Millisecond)
for _, op := range participants {