Skip to content
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

Fix lingering/leaking goroutines for k6 upgrade #990

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Aug 2, 2023

Description of changes

This change ensures that goroutines that were lingering/leaking are cleared once the test ends. This change focuses on the goroutines that were highlighted when trying to create e2e tests for the change in grafana/k6#3235. There could be more goroutines that are lingering/leaking that we need to deal with in the future.

Closes: #989

Checklist

We've found that when we perform a e2e test in k6 that the goroutines
handling the handleIterEvents do not get cleared away. This is due to
us not unsubscribing when the test exits.
This is no longer required since we're cleaning up the datadir when we
call browser.close().
Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ankur22 ankur22 merged commit bb18273 into main Aug 2, 2023
12 checks passed
@ankur22 ankur22 deleted the fix/989-clear-goroutine branch August 2, 2023 14:31
@inancgumus inancgumus added the dependencies Pull requests that update a dependency file label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

handleIterEvents goroutines not being cleared up
2 participants