Fix proxy test

The broker is a global object.
This commit is contained in:
meskio 2021-09-02 12:01:15 +02:00
parent ace8df37ed
commit cbd863d6b1
No known key found for this signature in database
GPG key ID: 52B8F5AC97A2DA86

View file

@ -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)