Make the proxy type configurable for users of the library

Closes: #40104
This commit is contained in:
meskio 2022-03-11 16:42:05 +01:00
parent b265bd3092
commit b73add1550
No known key found for this signature in database
GPG key ID: 52B8F5AC97A2DA86
2 changed files with 13 additions and 7 deletions

View file

@ -365,7 +365,7 @@ func TestBrokerInteractions(t *testing.T) {
b,
}
sdp := broker.pollOffer(sampleOffer, nil)
sdp := broker.pollOffer(sampleOffer, DefaultProxyType, nil)
expectedSDP, _ := strconv.Unquote(sampleSDP)
So(sdp.SDP, ShouldResemble, expectedSDP)
})
@ -379,7 +379,7 @@ func TestBrokerInteractions(t *testing.T) {
b,
}
sdp := broker.pollOffer(sampleOffer, nil)
sdp := broker.pollOffer(sampleOffer, DefaultProxyType, nil)
So(sdp, ShouldBeNil)
})
Convey("sends answer to broker", func() {