diff options
author | Cecylia Bocovich <cohosh@torproject.org> | 2022-02-14 15:11:41 -0500 |
---|---|---|
committer | Cecylia Bocovich <cohosh@torproject.org> | 2022-02-14 15:11:41 -0500 |
commit | 01ae5b56e8399d29aa18605dc9add913d84dc553 (patch) | |
tree | 8aa3b17e171a1d4679a56a591e7d5600aa523bdd | |
parent | 3547b284a9abf219053caaabee3a63f6793d8670 (diff) | |
download | snowflake-01ae5b56e8399d29aa18605dc9add913d84dc553.tar.gz snowflake-01ae5b56e8399d29aa18605dc9add913d84dc553.zip |
Fix client library test
Initialize eventsLogger for WebRTCPeer in client library test.
-rw-r--r-- | client/lib/lib_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/lib/lib_test.go b/client/lib/lib_test.go index f741775..45e8fe2 100644 --- a/client/lib/lib_test.go +++ b/client/lib/lib_test.go @@ -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) |