Catching a few more files with types (#299)

* Use types in mediatrack.go

* A bunch more files get types

* One more file
This commit is contained in:
Raja Subramanian
2021-12-29 23:51:06 +05:30
committed by GitHub
parent fe06b46e94
commit 9d78619ca3
15 changed files with 174 additions and 174 deletions
+2 -2
View File
@@ -176,7 +176,7 @@ func TestParticipantUpdate(t *testing.T) {
t.Run(test.name, func(t *testing.T) {
rm := newRoomWithParticipants(t, testRoomOpts{num: 3})
// remember how many times send has been called for each
callCounts := make(map[string]int)
callCounts := make(map[livekit.ParticipantID]int)
for _, p := range rm.GetParticipants() {
fp := p.(*typesfakes.FakeParticipant)
callCounts[p.ID()] = fp.SendParticipantUpdateCallCount()
@@ -264,7 +264,7 @@ func TestNewTrack(t *testing.T) {
require.Equal(t, 1, pub.AddSubscriberCallCount())
sub, params := pub.AddSubscriberArgsForCall(pub.AddSubscriberCallCount() - 1)
require.Equal(t, p1, sub)
require.Equal(t, types.AddSubscriberParams{TrackSids: []string{track.ID()}}, params)
require.Equal(t, types.AddSubscriberParams{TrackIDs: []livekit.TrackID{track.ID()}}, params)
})
}