Skip to content

Commit

Permalink
Update test to address API change
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Sep 1, 2023
1 parent e7cf1c2 commit 987ff95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion track_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestOnEnded(t *testing.T) {
called <- errExpected
})

_, err := tr.Bind(webrtc.TrackLocalContext{})
_, err := tr.Bind(&fakeTrackLocalContext{})
if err != nil {
t.Fatal(err)
}
Expand All @@ -103,6 +103,10 @@ func TestOnEnded(t *testing.T) {
})
}

type fakeTrackLocalContext struct {
webrtc.TrackLocalContext
}

type fakeRTCPReader struct {
mockReturn chan []byte
end chan struct{}
Expand Down

0 comments on commit 987ff95

Please sign in to comment.