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

Ensure build is complete before finishing tests #511

Merged
merged 1 commit into from Mar 14, 2021

Conversation

lukaszsamson
Copy link
Collaborator

Fixes #495

@@ -937,6 +937,8 @@ defmodule ElixirLS.LanguageServer.ServerTest do

# File is already formatted
assert response(3, []) == resp

wait_until_compiled(server)
Copy link
Member

Choose a reason for hiding this comment

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

Instead of adding these to each individual test directly, could we add it to a generic setup block? Perhaps one that checks for fixture: true. That would make it harder to miss one of these in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried adding it in on_exit callback but the server process is already down when it's executed. We'd need wrapping it in a lambda or macro with do block.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, k.

Copy link
Member

@axelson axelson left a comment

Choose a reason for hiding this comment

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

❤️

@axelson axelson merged commit a55f23e into master Mar 14, 2021
@axelson axelson deleted the ls-fix-race-conditions-in-test branch March 14, 2021 20:16
axelson added a commit to axelson/elixir-ls that referenced this pull request Mar 14, 2021
axelson added a commit that referenced this pull request Mar 28, 2021
* Add changelog test to verify that the changelog is correctly linked

* Update changelog

* Add #497

* Specify that the fuzzy completion is only for functions

* Fix formatting

* update changelog for #505

* Update changelog for #501, #473, and #504

* Update changelog for #507 and vscode #176

* Update changelog for #511

* Update changelog for #492
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.

Race conditions on CI
2 participants