Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
80fcc4ec
Unverified
Commit
80fcc4ec
authored
Jul 22, 2018
by
Whyrusleeping
Committed by
GitHub
Jul 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5276 from schomatis/fix/dag-mod/testLargeWriteChunks/seek
test: testLargeWriteChunks: seek before reading
parents
ec61e06c
c6fb3045
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
unixfs/mod/dagmodifier_test.go
unixfs/mod/dagmodifier_test.go
+5
-0
No files found.
unixfs/mod/dagmodifier_test.go
View file @
80fcc4ec
...
@@ -323,6 +323,11 @@ func testLargeWriteChunks(t *testing.T, opts testu.NodeOpts) {
...
@@ -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
)
out
,
err
:=
ioutil
.
ReadAll
(
dagmod
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment