Merge pull request #5276 from schomatis/fix/dag-mod/testLargeWriteChunks/seek

test: testLargeWriteChunks: seek before reading
This commit is contained in:
Whyrusleeping 2018-07-22 20:54:31 -07:00 committed by GitHub
commit 80fcc4ecf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)