mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
defer ticker.Stop
Co-authored-by: Evgeny Danilenko <6655321@bk.ru>
This commit is contained in:
parent
27cd2ae11a
commit
82bf6d0c37
1 changed files with 1 additions and 0 deletions
|
|
@ -221,6 +221,7 @@ func TestForkWithBlockTime(t *testing.T) {
|
|||
var wg sync.WaitGroup
|
||||
blockHeaders := make([]*types.Header, 2)
|
||||
ticker := time.NewTicker(time.Duration(test.blockTime["0"]) * time.Second)
|
||||
defer ticker.Stop()
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
wg.Add(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue