Unverified Commit 0893ee6d authored by ucwong's avatar ucwong Committed by GitHub

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

parent 4d891f23
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment