aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'trie/trie_test.go')
-rw-r--r--trie/trie_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/trie/trie_test.go b/trie/trie_test.go
index 14ac5a666..60307dba8 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -56,9 +56,11 @@ func TestEmptyTrie(t *testing.T) {
func TestNull(t *testing.T) {
var trie Trie
key := make([]byte, 32)
- value := common.FromHex("0x823140710bf13990e4500136726d8b55")
+ value := []byte("test")
trie.Update(key, value)
- value = trie.Get(key)
+ if !bytes.Equal(trie.Get(key), value) {
+ t.Fatal("wrong value")
+ }
}
func TestMissingRoot(t *testing.T) {