commit cbd863d6b1c7dfcb86321452782aba29ccce8b5d
Author: meskio <meskio(a)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)