[tor-commits] [snowflake/main] Fix proxy test

meskio at torproject.org meskio at torproject.org
Thu Sep 2 14:02:19 UTC 2021


commit cbd863d6b1c7dfcb86321452782aba29ccce8b5d
Author: meskio <meskio at torproject.org>
Date:   Thu Sep 2 12:01:15 2021 +0200

    Fix proxy test
    
    The broker is a global object.
---
 proxy/proxy-go_test.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxy/proxy-go_test.go b/proxy/proxy-go_test.go
index 183b1b4..6fb5a0b9 100644
--- a/proxy/proxy-go_test.go
+++ b/proxy/proxy-go_test.go
@@ -336,7 +336,8 @@ func TestBrokerInteractions(t *testing.T) {
 	const sampleAnswer = `{"type":"answer","sdp":` + sampleSDP + `}`
 
 	Convey("Proxy connections to broker", t, func() {
-		broker, err := newSignalingServer("localhost", false)
+		var err error
+		broker, err = newSignalingServer("localhost", false)
 		So(err, ShouldEqual, nil)
 		tokens = newTokens(0)
 



More information about the tor-commits mailing list