Fix client library test

Initialize eventsLogger for WebRTCPeer in client library test.
This commit is contained in:
Cecylia Bocovich 2022-02-14 15:11:41 -05:00
parent 3547b284a9
commit 01ae5b56e8
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -171,7 +171,8 @@ func TestSnowflakeClient(t *testing.T) {
func TestWebRTCPeer(t *testing.T) {
Convey("WebRTCPeer", t, func(c C) {
p := &WebRTCPeer{closed: make(chan struct{})}
eventsLogger := NewPTEventLogger()
p := &WebRTCPeer{closed: make(chan struct{}), eventsLogger: eventsLogger}
Convey("checks for staleness", func() {
go p.checkForStaleness(time.Second)
<-time.After(2 * time.Second)