webRTCConn has better seam with BytesLogger interface

This commit is contained in:
Serene Han 2016-05-24 12:56:09 -07:00
parent 6b8568cc6c
commit b2c9fcac5e
4 changed files with 39 additions and 20 deletions

View file

@ -109,11 +109,7 @@ func TestSnowflakeClient(t *testing.T) {
})
Convey("WebRTC Connection", func() {
c := new(webRTCConn)
c.BytesInfo = &BytesInfo{
inboundChan: make(chan int), outboundChan: make(chan int),
inbound: 0, outbound: 0, inEvents: 0, outEvents: 0,
}
c := NewWebRTCConnection(nil, nil)
So(c.buffer.Bytes(), ShouldEqual, nil)
Convey("Can construct a WebRTCConn", func() {