1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

u.Hash - error

the u.Hash error can be safely ignored (panic) because multihash
only fails from the selection of hash function. If the fn + length
are valid, it won't error.

cc @whyrusleeping
This commit is contained in:
Juan Batiz-Benet
2014-10-06 02:26:50 -07:00
parent af1ce6ee50
commit f3ae0e8e1b
10 changed files with 21 additions and 47 deletions

View File

@ -48,11 +48,7 @@ func TestRoutingResolve(t *testing.T) {
t.Fatal(err)
}
pkhash, err := u.Hash(pubkb)
if err != nil {
t.Fatal(err)
}
pkhash := u.Hash(pubkb)
res, err := resolve.Resolve(u.Key(pkhash).Pretty())
if err != nil {
t.Fatal(err)