mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Use reconnect timeout on client (#12)
This commit is contained in:
parent
f205a0be59
commit
8a2e7a6041
3 changed files with 36 additions and 25 deletions
|
@ -39,6 +39,13 @@ func TestConnect(t *testing.T) {
|
|||
So(mock.destination.Bytes(), ShouldResemble, []byte("test"))
|
||||
})
|
||||
|
||||
Convey("Receive answer fails on nil answer", func() {
|
||||
c.reset = make(chan struct{})
|
||||
c.ReceiveAnswer()
|
||||
answerChannel <- nil
|
||||
<-c.reset
|
||||
})
|
||||
|
||||
Convey("Connect Loop", func() {
|
||||
// TODO
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue