From 0893ee6d519cb5cffb56c480020051d25728a734 Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 2 Apr 2020 21:56:25 +0800 Subject: [PATCH] event: add missing timer.Stop call in TestFeed (#20868) --- event/feed_test.go | 1 + 1 file changed, 1 insertion(+) 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 {