X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=client_test.go;h=3735e1f71034f8c3ebcd03f7efb63c522eff4c1a;hp=38f88081dc8f4f73d0b352e77705a983c3fb3e5c;hb=0b8c40aa61e899edb3e563b7771e3d7927d6e859;hpb=63f94d18c90f290d9cdffb703fc97c266320738d diff --git a/client_test.go b/client_test.go index 38f8808..3735e1f 100644 --- a/client_test.go +++ b/client_test.go @@ -47,10 +47,10 @@ func (conn *TestingConn) Read(b []byte) (n int, err error) { if msg == "" { return 0, conn } - for n, bt := range []byte(msg + CRLF) { + for n, bt := range append([]byte(msg), CRLF...) { b[n] = bt } - return len(msg), nil + return len(msg)+2, nil } type MyAddr struct{}