@cryptotaxi247 / kubo / commits / c6fb30450

test: testLargeWriteChunks: seek before reading

License: MIT Signed-off-by: Lucas Molas <schomatis@gmail.com>

Lucas Molas committed Jul 22, 2018 at 23:02 UTC c6fb30450ffa8b6d06890b637d9c3a7e410f7144
1 file changed +5
unixfs/mod/dagmodifier_test.go
+5
@@ -323,6 +323,11 @@ func testLargeWriteChunks(t *testing.T, opts testu.NodeOpts) {
323 }
324 }
325
326 + _, err = dagmod.Seek(0, io.SeekStart)
327 + if err != nil {
328 + t.Fatal(err)
329 + }
330 +
331 out, err := ioutil.ReadAll(dagmod)
332 if err != nil {
333 t.Fatal(err)