defer snowflake.Reset to fix handler recovery when localhost SOCKS occassionally fails first

This commit is contained in:
Serene H 2016-07-29 10:59:51 -07:00
parent 0ae71952d2
commit ea2e052a7d
5 changed files with 17 additions and 14 deletions

View file

@ -184,11 +184,11 @@ func TestSnowflakeClient(t *testing.T) {
})
Convey("WebRTC Connection", func() {
c := NewWebRTCConnection(nil, nil)
c := NewWebRTCPeer(nil, nil)
So(c.buffer.Bytes(), ShouldEqual, nil)
Convey("Can construct a WebRTCConn", func() {
s := NewWebRTCConnection(nil, nil)
s := NewWebRTCPeer(nil, nil)
So(s, ShouldNotBeNil)
So(s.offerChannel, ShouldNotBeNil)
So(s.answerChannel, ShouldNotBeNil)