Skip to content

Commit 0893ee6

Browse files
authored
event: add missing timer.Stop call in TestFeed (ethereum#20868)
1 parent 4d891f2 commit 0893ee6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

event/feed_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func TestFeed(t *testing.T) {
8686
subchan := make(chan int)
8787
sub := feed.Subscribe(subchan)
8888
timeout := time.NewTimer(2 * time.Second)
89+
defer timeout.Stop()
8990
subscribed.Done()
9091

9192
select {

0 commit comments

Comments
 (0)