mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
fix failing test
This commit is contained in:
parent
cc763d0908
commit
027b15cad9
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue