mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Make the proxy type configurable for users of the library
Closes: #40104
This commit is contained in:
parent
b265bd3092
commit
b73add1550
2 changed files with 13 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue