Update trie_test.go

This commit is contained in:
conomist 2026-01-11 17:26:12 +01:00 committed by GitHub
parent 127d1f42bb
commit 4d64bbe82d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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