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-merkledag
Commits
1bcb27fd
Commit
1bcb27fd
authored
Feb 27, 2018
by
Hector Sanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merkledag_test: address #4704 review comments
License: MIT Signed-off-by:
Hector Sanjuan
<
hector@protocol.ai
>
parent
0a8f8e30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
merkledag_test.go
merkledag_test.go
+1
-3
No files found.
merkledag_test.go
View file @
1bcb27fd
...
@@ -134,7 +134,7 @@ func makeTestDAG(t *testing.T, read io.Reader, ds ipld.DAGService) ipld.Node {
...
@@ -134,7 +134,7 @@ func makeTestDAG(t *testing.T, read io.Reader, ds ipld.DAGService) ipld.Node {
p
:=
make
([]
byte
,
512
)
p
:=
make
([]
byte
,
512
)
nodes
:=
[]
*
ProtoNode
{}
nodes
:=
[]
*
ProtoNode
{}
var
err
error
var
err
error
_
,
err
=
read
.
Read
(
p
)
_
,
err
=
io
.
Read
Full
(
read
,
p
)
for
err
==
nil
{
for
err
==
nil
{
protoNode
:=
NodeWithData
(
p
)
protoNode
:=
NodeWithData
(
p
)
nodes
=
append
(
nodes
,
protoNode
)
nodes
=
append
(
nodes
,
protoNode
)
...
@@ -225,8 +225,6 @@ func runBatchFetchTest(t *testing.T, read io.Reader) {
...
@@ -225,8 +225,6 @@ func runBatchFetchTest(t *testing.T, read io.Reader) {
if
!
ok
{
if
!
ok
{
errs
<-
ErrNotProtobuf
errs
<-
ErrNotProtobuf
}
}
_
=
firstpb
_
=
expected
read
:=
makeTestDAGReader
(
t
,
firstpb
,
dagservs
[
i
])
read
:=
makeTestDAGReader
(
t
,
firstpb
,
dagservs
[
i
])
datagot
,
err
:=
ioutil
.
ReadAll
(
read
)
datagot
,
err
:=
ioutil
.
ReadAll
(
read
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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