mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-22 07:49:26 +00:00
event: add missing timer.Stop call in TestFeed (#20868)
This commit is contained in:
parent
4d891f23b5
commit
0893ee6d51
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ func TestFeed(t *testing.T) {
|
||||||
subchan := make(chan int)
|
subchan := make(chan int)
|
||||||
sub := feed.Subscribe(subchan)
|
sub := feed.Subscribe(subchan)
|
||||||
timeout := time.NewTimer(2 * time.Second)
|
timeout := time.NewTimer(2 * time.Second)
|
||||||
|
defer timeout.Stop()
|
||||||
subscribed.Done()
|
subscribed.Done()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue