[tor-commits] [snowflake/main] Fix client library test
cohosh at torproject.org
cohosh at torproject.org
Wed Feb 16 18:20:35 UTC 2022
commit 01ae5b56e8399d29aa18605dc9add913d84dc553
Author: Cecylia Bocovich <cohosh at torproject.org>
Date: Mon Feb 14 15:11:41 2022 -0500
Fix client library test
Initialize eventsLogger for WebRTCPeer in client library test.
---
client/lib/lib_test.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
More information about the tor-commits
mailing list