Skip to content

Commit f98caba

Browse files
authored
core: add missing Timer.Stop call in TestLogReorgs (#20870)
1 parent 0c359e4 commit f98caba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/blockchain_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ func TestLogReorgs(t *testing.T) {
973973
t.Fatalf("failed to insert forked chain: %v", err)
974974
}
975975
timeout := time.NewTimer(1 * time.Second)
976+
defer timeout.Stop()
976977
select {
977978
case <-done:
978979
case <-timeout.C:

0 commit comments

Comments
 (0)