Skip to content

Commit

Permalink
eth/downloader: fix racy test
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Jan 30, 2025
1 parent 52766be commit 85abb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/downloader/testchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 85abb73

Please sign in to comment.