diff --git a/input_tcp_test.go b/input_tcp_test.go index bbb0cc7..f440c57 100644 --- a/input_tcp_test.go +++ b/input_tcp_test.go @@ -40,7 +40,7 @@ func TestTCPInput(t *testing.T) { for i := 0; i < 100; i++ { wg.Add(1) - encoded := make([]byte, len(msg)*2+1) + encoded := make([]byte, len(msg)*2) hex.Encode(encoded, msg) conn.Write(append(encoded, '\n')) }