Skip to content

Commit

Permalink
event: add missing timer.Stop call in TestFeed (ethereum#20868)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent 4d891f2 commit 0893ee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions event/feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func TestFeed(t *testing.T) {
subchan := make(chan int)
sub := feed.Subscribe(subchan)
timeout := time.NewTimer(2 * time.Second)
defer timeout.Stop()
subscribed.Done()

select {
Expand Down

0 comments on commit 0893ee6

Please sign in to comment.