eth/downloader: fix racy test

pull/31097/head
Marius van der Wijden 1 week ago
parent 52766bedb9
commit 85abb73a7e
  1. 2
      eth/downloader/testchain_test.go

@ -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…
Cancel
Save