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
@@ -52,7 +52,7 @@ func TestICEStateChange(t *testing.T) {
t.Run("onClose gets called when ICE disconnected", func(t *testing.T) {
p := newParticipantForTest("test")
closeChan := make(chan struct{})
p.onClose = func(participant types.Participant, disallowedSubscriptions map[string]string) {
p.onClose = func(participant types.Participant, disallowedSubscriptions map[livekit.TrackID]livekit.ParticipantID) {
close(closeChan)
}
p.handlePrimaryICEStateChange(webrtc.ICEConnectionStateFailed)
@@ -341,7 +341,7 @@ func TestSubscriberAsPrimary(t *testing.T) {
})
}
func newParticipantForTest(identity string) *ParticipantImpl {
func newParticipantForTest(identity livekit.ParticipantIdentity) *ParticipantImpl {
conf, _ := config.NewConfig("", nil)
// disable mux, it doesn't play too well with unit test
conf.RTC.UDPPort = 0