Skip to content

fix(tests): Stop timer thread when shutting down dispatchers#1545

Merged
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:timer-thread-leak
Jun 8, 2026
Merged

fix(tests): Stop timer thread when shutting down dispatchers#1545
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:timer-thread-leak

Conversation

@FlorianKroiss

Copy link
Copy Markdown
Contributor

We call LanguageServerWrapper.stopDispatcher() after each test to clean up the spawned executors/threads. However, we did not include the Timer instance, which would cause many leaked Threads during test execution

We call `LanguageServerWrapper.stopDispatcher()` after each test to clean up the spawned executors/threads.
However, we did not include the Timer instance, which would cause many leaked Threads during test execution
@FlorianKroiss

Copy link
Copy Markdown
Contributor Author

Before this change, running the tests locally for a while looked like this in the debugger:
Screenshot 2026-06-07 152310

@FlorianKroiss FlorianKroiss requested a review from rubenporras June 7, 2026 14:01
@rubenporras rubenporras merged commit b0be2ac into eclipse-lsp4e:main Jun 8, 2026
9 of 11 checks passed
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