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

Investigate potential memory leak in TestRunCancellationToken #4822

Open
Youssef1313 opened this issue Jan 29, 2025 · 0 comments
Open

Investigate potential memory leak in TestRunCancellationToken #4822

Youssef1313 opened this issue Jan 29, 2025 · 0 comments

Comments

@Youssef1313
Copy link
Member

TestRunCancellationToken maintains a list of registered callbacks.

One of the paths for the registration is to associate the global test run cancellation with TestContext CTS (i.e, if the global is cancelled, then the TestContext one is cancelled as well).

I think this means that all created TextContext will remain alive in memory as we don't unregister the callbacks any where.

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

No branches or pull requests

1 participant