mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core | add missing timer.Stop() call to blockchain test
This commit is contained in:
parent
66ed58bfcc
commit
30c709333b
1 changed files with 1 additions and 0 deletions
|
|
@ -973,6 +973,7 @@ func TestLogReorgs(t *testing.T) {
|
||||||
t.Fatalf("failed to insert forked chain: %v", err)
|
t.Fatalf("failed to insert forked chain: %v", err)
|
||||||
}
|
}
|
||||||
timeout := time.NewTimer(1 * time.Second)
|
timeout := time.NewTimer(1 * time.Second)
|
||||||
|
defer timeout.Stop()
|
||||||
select {
|
select {
|
||||||
case <-done:
|
case <-done:
|
||||||
case <-timeout.C:
|
case <-timeout.C:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue