Skip to content

Commit

Permalink
Merge pull request #5761 from filecoin-project/fix/testunpadreader-go116
Browse files Browse the repository at this point in the history
Fix TestUnpadReader on Go 1.16
  • Loading branch information
magik6k authored Mar 10, 2021
2 parents 0527494 + 7fbb4bd commit cc490b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extern/sector-storage/fr32/readers_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package fr32_test

import (
"bufio"
"bytes"
"io/ioutil"
"testing"
Expand All @@ -25,7 +26,8 @@ func TestUnpadReader(t *testing.T) {
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 {
t.Fatal(err)
}
Expand Down

0 comments on commit cc490b9

Please sign in to comment.