Skip to content

fix: Properly wait for pending document setups#1554

Merged
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:fix-setup-wait
Jun 29, 2026
Merged

fix: Properly wait for pending document setups#1554
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:fix-setup-wait

Conversation

@FlorianKroiss

@FlorianKroiss FlorianKroiss commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

The CompletableFutures that we want to wait for during testing are only added to PENDING_CONNECTIONS after a delay of one second. So it's possible, that waitForAll has already returned but there are still pending document setups

@FlorianKroiss

Copy link
Copy Markdown
Contributor Author

A small fix which I extracted from #1546 which can be merged independently.

@rubenporras rubenporras left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you mind changing the comment as I suggest or otherwise? It looks to me from the class comment that this class in not "test" only.

The CompletableFuture that we want to wait for during testing is only added to `PENDING_CONNECTIONS` after a delay of one second.
So it's possible, that `waitForAll` has already returned but there are still pending document setups
@FlorianKroiss FlorianKroiss changed the title fix(tests): Properly wait for pending document setups fix: Properly wait for pending document setups Jun 29, 2026
@rubenporras rubenporras merged commit d7551d9 into eclipse-lsp4e:main Jun 29, 2026
15 of 16 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