mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Co-authored-by: ucwong <ucwong@126.com>
This commit is contained in:
parent
fb5cdfc729
commit
b0c0e4c1bf
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,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