Fix tests
This commit is contained in:
parent
352f7a8487
commit
fb287dce2f
@ -141,7 +141,7 @@ func TestRecv(t *testing.T) {
|
|||||||
func TestRecvTriggersReconnect(t *testing.T) {
|
func TestRecvTriggersReconnect(t *testing.T) {
|
||||||
c := testClient()
|
c := testClient()
|
||||||
c.conn = &mockConn{}
|
c.conn = &mockConn{}
|
||||||
c.reader = bufio.NewReader(&bytes.Buffer{})
|
c.reader = bufio.NewReader(bytes.NewBufferString("001 bob\r\n"))
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
ok := false
|
ok := false
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user