diff --git a/trie/trie_test.go b/trie/trie_test.go index b8b8edb33e..2efcb47e2b 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -1356,8 +1356,10 @@ func testTrieCopy(t *testing.T, entries []kv) { } trCpy := tr.Copy() - if tr.Hash() != trCpy.Hash() { - t.Errorf("Hash mismatch: old %v, copy %v", tr.Hash(), trCpy.Hash()) + trHash := tr.Hash() + copyHash := trCpy.Hash() + if trHash != copyHash { + t.Errorf("Hash mismatch: old %v, copy %v", trHash, copyHash) } // Check iterator