fix failing test

This commit is contained in:
Guillaume Ballet 2026-03-12 14:50:47 +01:00
parent cc763d0908
commit 027b15cad9
No known key found for this signature in database

View file

@ -49,7 +49,6 @@ func TestBintrieConvert(t *testing.T) {
Preimages: true, Preimages: true,
PathDB: pathdb.Defaults, PathDB: pathdb.Defaults,
}) })
defer srcTriedb.Close()
gspec := &core.Genesis{ gspec := &core.Genesis{
Config: params.TestChainConfig, Config: params.TestChainConfig,
@ -74,6 +73,7 @@ func TestBintrieConvert(t *testing.T) {
genesisBlock := gspec.MustCommit(chaindb, srcTriedb) genesisBlock := gspec.MustCommit(chaindb, srcTriedb)
root := genesisBlock.Root() root := genesisBlock.Root()
t.Logf("Genesis root: %x", root) t.Logf("Genesis root: %x", root)
srcTriedb.Close()
srcTriedb2 := triedb.NewDatabase(chaindb, &triedb.Config{ srcTriedb2 := triedb.NewDatabase(chaindb, &triedb.Config{
Preimages: true, Preimages: true,