From b0c0e4c1bf213f283ccf5980e2dd878c92107738 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Sun, 21 Sep 2025 19:38:34 +0800 Subject: [PATCH] event: add missing timer.Stop call in TestFeed #20868 (#1542) Co-authored-by: ucwong --- event/feed_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/event/feed_test.go b/event/feed_test.go index 8713e79bd1..1ab211769b 100644 --- a/event/feed_test.go +++ b/event/feed_test.go @@ -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 {