Fix tests

This commit is contained in:
Ken-Håvard Lieng 2018-06-18 16:12:19 +02:00
parent 352f7a8487
commit fb287dce2f

View File

@ -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() {