diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-30 20:28:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-30 20:28:54 +0800 |
commit | 82272ee08a7d72be1cc0947b6a0e8096a0353362 (patch) | |
tree | 4fe6fd457ac0689b63eb68ec5ae5980ac6429ade /ethutil/trie_test.go | |
parent | 9ed0d389b2402baf2dbc90fe12e9b4695ee22858 (diff) | |
download | dexon-82272ee08a7d72be1cc0947b6a0e8096a0353362.tar.gz dexon-82272ee08a7d72be1cc0947b6a0e8096a0353362.tar.zst dexon-82272ee08a7d72be1cc0947b6a0e8096a0353362.zip |
Iterator fix
Diffstat (limited to 'ethutil/trie_test.go')
-rw-r--r-- | ethutil/trie_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethutil/trie_test.go b/ethutil/trie_test.go index 3ee955b11..d8db8a0d6 100644 --- a/ethutil/trie_test.go +++ b/ethutil/trie_test.go @@ -261,13 +261,13 @@ func TestTrieReplay(t *testing.T) { _, trie2 := New() trie.NewIterator().Each(func(key string, v *Value) { - trie2.Update(key, string(v.Str())) + trie2.Update(key, v.Str()) }) a := NewValue(trie.Root).Bytes() b := NewValue(trie2.Root).Bytes() if bytes.Compare(a, b) != 0 { - t.Errorf("root %x %x\n", trie.Root, trie2.Root) + t.Errorf("%s %x %x\n", test.Name, trie.Root, trie2.Root) } }) } |