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
interface-go-dms3-core
Commits
114c6233
Unverified
Commit
114c6233
authored
Aug 23, 2019
by
Steven Allen
Committed by
GitHub
Aug 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #41 from ipfs/fix/breaking-id-hash-name
test: fix put with hash test
parents
cb44c378
6ebdbe7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/dag.go
tests/dag.go
+2
-2
No files found.
tests/dag.go
View file @
114c6233
...
...
@@ -71,7 +71,7 @@ func (tp *TestSuite) TestPutWithHash(t *testing.T) {
t
.
Fatal
(
err
)
}
nd
,
err
:=
ipldcbor
.
FromJSON
(
strings
.
NewReader
(
`"Hello"`
),
mh
.
ID
,
-
1
)
nd
,
err
:=
ipldcbor
.
FromJSON
(
strings
.
NewReader
(
`"Hello"`
),
mh
.
SHA3_256
,
-
1
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
@@ -81,7 +81,7 @@ func (tp *TestSuite) TestPutWithHash(t *testing.T) {
t
.
Fatal
(
err
)
}
if
nd
.
Cid
()
.
String
()
!=
"bafy
qabtfjbswy3dp
"
{
if
nd
.
Cid
()
.
String
()
!=
"bafy
rmifu7haikttpqqgc5ewvmp76z3z4ebp7h2ph4memw7dq4nt6btmxny
"
{
t
.
Errorf
(
"got wrong cid: %s"
,
nd
.
Cid
()
.
String
())
}
}
...
...
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