Fix TestUnpadReader on Go 1.16
This commit is contained in:
parent
1c62d7a40f
commit
7fbb4bdd3b
4
extern/sector-storage/fr32/readers_test.go
vendored
4
extern/sector-storage/fr32/readers_test.go
vendored
@ -1,6 +1,7 @@
|
|||||||
package fr32_test
|
package fr32_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
@ -25,7 +26,8 @@ func TestUnpadReader(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
readered, err := ioutil.ReadAll(r)
|
// using bufio reader to make sure reads are big enough for the padreader - it can't handle small reads right now
|
||||||
|
readered, err := ioutil.ReadAll(bufio.NewReaderSize(r, 512))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user