Skip to content

Commit

Permalink
Merge pull request #5276 from schomatis/fix/dag-mod/testLargeWriteChu…
Browse files Browse the repository at this point in the history
…nks/seek

test: testLargeWriteChunks: seek before reading
  • Loading branch information
whyrusleeping authored Jul 23, 2018
2 parents ec61e06 + c6fb304 commit 80fcc4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unixfs/mod/dagmodifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ func testLargeWriteChunks(t *testing.T, opts testu.NodeOpts) {
}
}

_, err = dagmod.Seek(0, io.SeekStart)
if err != nil {
t.Fatal(err)
}

out, err := ioutil.ReadAll(dagmod)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 80fcc4e

Please # to comment.