You've already forked torrent-client
mirror of
https://github.com/veggiedefender/torrent-client.git
synced 2025-11-06 09:29:16 +02:00
Incredibly messy and slow download
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package message
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
@@ -179,7 +180,7 @@ func TestRead(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
reader := bytes.NewReader(test.input)
|
||||
reader := bufio.NewReader(bytes.NewReader(test.input))
|
||||
m, err := Read(reader)
|
||||
if test.fails {
|
||||
assert.NotNil(t, err)
|
||||
|
||||
Reference in New Issue
Block a user