From c6fb30450ffa8b6d06890b637d9c3a7e410f7144 Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Sun, 22 Jul 2018 23:02:19 -0300 Subject: [PATCH] test: testLargeWriteChunks: seek before reading License: MIT Signed-off-by: Lucas Molas --- unixfs/mod/dagmodifier_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unixfs/mod/dagmodifier_test.go b/unixfs/mod/dagmodifier_test.go index 0a5c5a74f33..3e460aec512 100644 --- a/unixfs/mod/dagmodifier_test.go +++ b/unixfs/mod/dagmodifier_test.go @@ -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)