Commit a53813c8 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

fixed resolver test

parent ab83c524
......@@ -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.")
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment