Skip to content

Commit

Permalink
core: add missing Timer.Stop call in TestLogReorgs (ethereum#20870)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent 0c359e4 commit f98caba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f98caba

Please sign in to comment.