diff options
Diffstat (limited to 'trie')
-rw-r--r-- | trie/proof_test.go | 2 | ||||
-rw-r--r-- | trie/trie_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/trie/proof_test.go b/trie/proof_test.go index 5668d6562..91ebcd4a5 100644 --- a/trie/proof_test.go +++ b/trie/proof_test.go @@ -124,7 +124,7 @@ func BenchmarkVerifyProof(b *testing.B) { for i := 0; i < b.N; i++ { im := i % len(keys) if _, err := VerifyProof(root, []byte(keys[im]), proofs[im]); err != nil { - b.Fatalf("key %x: error", keys[im], err) + b.Fatalf("key %x: %v", keys[im], err) } } } diff --git a/trie/trie_test.go b/trie/trie_test.go index 493f99d91..bb761b555 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -65,7 +65,7 @@ func TestMissingRoot(t *testing.T) { t.Error("New returned non-nil trie for invalid root") } if _, ok := err.(*MissingNodeError); !ok { - t.Error("New returned wrong error: %v", err) + t.Errorf("New returned wrong error: %v", err) } } |