github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/chain/trie/database_test.go (about) 1 package trie 2 3 import ( 4 "testing" 5 6 "github.com/neatio-net/neatio/neatdb/memorydb" 7 "github.com/neatio-net/neatio/utilities/common" 8 ) 9 10 func TestDatabaseMetarootFetch(t *testing.T) { 11 db := NewDatabase(memorydb.New()) 12 if _, err := db.Node(common.Hash{}); err == nil { 13 t.Fatalf("metaroot retrieval succeeded") 14 } 15 }