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-unixfs
Commits
a53813c8
Commit
a53813c8
authored
Oct 09, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed resolver test
parent
ab83c524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
namesys/resolve_test.go
namesys/resolve_test.go
+7
-1
No files found.
namesys/resolve_test.go
View file @
a53813c8
...
...
@@ -26,6 +26,12 @@ func TestRoutingResolve(t *testing.T) {
}
err
=
publisher
.
Publish
(
privk
,
"Hello"
)
if
err
==
nil
{
t
.
Fatal
(
"should have errored out when publishing a non-multihash val"
)
}
h
:=
u
.
Key
(
u
.
Hash
([]
byte
(
"Hello"
)))
.
Pretty
()
err
=
publisher
.
Publish
(
privk
,
h
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
@@ -41,7 +47,7 @@ func TestRoutingResolve(t *testing.T) {
t
.
Fatal
(
err
)
}
if
res
!=
"Hello"
{
if
res
!=
h
{
t
.
Fatal
(
"Got back incorrect value."
)
}
}
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