mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
event | add missing timer.Stop() call to event/feed_test
This commit is contained in:
parent
66ed58bfcc
commit
8604a3e004
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue