mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fix tcp input test
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ func TestTCPInput(t *testing.T) {
|
|||||||
for i := 0; i < 100; i++ {
|
for i := 0; i < 100; i++ {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|
||||||
encoded := make([]byte, len(msg)*2+1)
|
encoded := make([]byte, len(msg)*2)
|
||||||
hex.Encode(encoded, msg)
|
hex.Encode(encoded, msg)
|
||||||
conn.Write(append(encoded, '\n'))
|
conn.Write(append(encoded, '\n'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user