mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
eth/downloader: fix racy test
This commit is contained in:
parent
52766bedb9
commit
85abb73a7e
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ func newTestBlockchain(blocks []*types.Block) *core.BlockChain {
|
|||
testBlockchains[head] = new(testBlockchain)
|
||||
}
|
||||
tbc := testBlockchains[head]
|
||||
testBlockchainsLock.Unlock()
|
||||
defer testBlockchainsLock.Unlock()
|
||||
|
||||
// Ensure that the database is generated
|
||||
tbc.gen.Do(func() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue