1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-24 05:59:55 +08:00

fixed resolver test

This commit is contained in:
Juan Batiz-Benet
2014-10-09 03:50:52 -07:00
parent ab83c52431
commit a53813c8fa

View File

@ -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.")
}
}