mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core: add missing Timer.Stop call in TestLogReorgs (#20870)
This commit is contained in:
parent
0c359e4b9a
commit
f98cabad7c
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)
|
||||
}
|
||||
timeout := time.NewTimer(1 * time.Second)
|
||||
defer timeout.Stop()
|
||||
select {
|
||||
case <-done:
|
||||
case <-timeout.C:
|
||||
|
|
|
|||
Loading…
Reference in a new issue