Skip to content

Conversation

anim001k
Copy link

@anim001k anim001k commented Oct 9, 2025

Problem

The test TestClean in async/multilock_test.go uses time.Tick() which creates an unstoppable ticker, leading to goroutine and timer leaks.

Solution

  • Replace time.Tick() with time.NewTicker()
  • Add defer ticker.Stop() to properly clean up resources
  • Update select case to use ticker.C channel

@CLAassistant
Copy link

CLAassistant commented Oct 9, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants