event: add missing timer.Stop call in TestFeed #20868 (#1542)

Co-authored-by: ucwong <ucwong@126.com>
This commit is contained in:
Daniel Liu 2025-09-21 19:38:34 +08:00 committed by GitHub
parent fb5cdfc729
commit b0c0e4c1bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {