commit 01ae5b56e8399d29aa18605dc9add913d84dc553
Author: Cecylia Bocovich <coh...@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)

_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to