diff --git a/event/feed_test.go b/event/feed_test.go index be8876932..93badaaee 100644 --- a/event/feed_test.go +++ b/event/feed_test.go @@ -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 {