Skip to content

Fix flaky test TestSubscribeWithContextDone #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

n-peugnet
Copy link

@n-peugnet n-peugnet commented Feb 20, 2025

Instead of comparing the number of goroutines which is inherently unreliable, we count the number of goroutines that exited using a defer statement, and an atomic counter.

By the way, the timer are reduced to 100ms as it is more than enough time to let the goroutines exit.

Closes: #186

Instead of comparing the number of goroutines which is inherently
unreliable, we count the number of goroutines that exited using a defer
statement, and an atomic counter.

By the way, the timer are reduced to 10ms as it is more than enough time
to let the goroutines exit.

Closes: r3labs#186
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.

Flaky test: TestSubscribeWithContextDone
1 participant