1
0
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:
Jesse
2019-12-26 21:53:11 -05:00
parent b1fc8c7fb8
commit 7e8cac2d3e
8 changed files with 290 additions and 46 deletions

View File

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