mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Remove client test with nil broker
We are no longer checking for nil BrokerChannels in Catch because this case is caught from the return values of NewBrokerChannel. This change caused a no longer necessary unit test to hang.
This commit is contained in:
parent
7682986a45
commit
50673d4943
1 changed files with 0 additions and 6 deletions
|
@ -271,12 +271,6 @@ func TestSnowflakeClient(t *testing.T) {
|
||||||
So(d.BrokerChannel, ShouldNotBeNil)
|
So(d.BrokerChannel, ShouldNotBeNil)
|
||||||
So(d.BrokerChannel.Host, ShouldEqual, "test")
|
So(d.BrokerChannel.Host, ShouldEqual, "test")
|
||||||
})
|
})
|
||||||
Convey("WebRTCDialer cannot Catch a snowflake with nil broker.", func() {
|
|
||||||
d := NewWebRTCDialer(nil, nil)
|
|
||||||
conn, err := d.Catch()
|
|
||||||
So(conn, ShouldBeNil)
|
|
||||||
So(err, ShouldNotBeNil)
|
|
||||||
})
|
|
||||||
SkipConvey("WebRTCDialer can Catch a snowflake.", func() {
|
SkipConvey("WebRTCDialer can Catch a snowflake.", func() {
|
||||||
broker := &BrokerChannel{Host: "test"}
|
broker := &BrokerChannel{Host: "test"}
|
||||||
d := NewWebRTCDialer(broker, nil)
|
d := NewWebRTCDialer(broker, nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue