mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43: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)
|
testBlockchains[head] = new(testBlockchain)
|
||||||
}
|
}
|
||||||
tbc := testBlockchains[head]
|
tbc := testBlockchains[head]
|
||||||
testBlockchainsLock.Unlock()
|
defer testBlockchainsLock.Unlock()
|
||||||
|
|
||||||
// Ensure that the database is generated
|
// Ensure that the database is generated
|
||||||
tbc.gen.Do(func() {
|
tbc.gen.Do(func() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue