Commit c8c176c8 authored by Jeromy's avatar Jeromy

make tests pass

parent 2a7a5b63
...@@ -17,12 +17,7 @@ func TestBlocks(t *testing.T) { ...@@ -17,12 +17,7 @@ func TestBlocks(t *testing.T) {
return return
} }
b, err := blocks.NewBlock([]byte("beep boop")) b := blocks.NewBlock([]byte("beep boop"))
if err != nil {
t.Error("failed to construct block", err)
return
}
h := u.Hash([]byte("beep boop")) h := u.Hash([]byte("beep boop"))
if !bytes.Equal(b.Multihash, h) { if !bytes.Equal(b.Multihash, h) {
t.Error("Block Multihash and data multihash not equal") t.Error("Block Multihash and data multihash not equal")
......
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