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

Code action test should wait for diagnostics #223

Merged
merged 4 commits into from
Oct 5, 2023

Conversation

jessienguyen2312
Copy link
Contributor

@jessienguyen2312 jessienguyen2312 commented Sep 22, 2023

Closes #223 (comment)
Added time out procedure to def test_command_code_action(code, contents, command) based on the example on test_linting.py

@karthiknadig
Copy link
Member

@jessienguyen2312 Thank you for the contribution. You have to do two more things:

  1. Can you follow this comment and accept the CLA? Code action test should wait for diagnostics #223 (comment)
  2. You may need to run black ./src/test/python_tests and isort --profile black ./src/test/python_tests

@jessienguyen2312
Copy link
Contributor Author

@microsoft-github-policy-service agree

@karthiknadig karthiknadig enabled auto-merge (squash) October 5, 2023 22:11
@karthiknadig karthiknadig changed the title Code action test should wait for diagnostics. #66 Code action test should wait for diagnostics Oct 5, 2023
@@ -14,6 +15,7 @@
TEST_FILE_PATH = constants.TEST_DATA / "sample1" / "sample.py"
TEST_FILE_URI = utils.as_uri(str(TEST_FILE_PATH))
LINTER = utils.get_server_info_defaults()["name"]
TIMEOUT = 10 # 10 seconds
Copy link
Member

Choose a reason for hiding this comment

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

is this in seconds or milliseconds?

Copy link
Member

Choose a reason for hiding this comment

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

It is seconds. Python in most cases uses seconds and floating point for milliseconds

@karthiknadig karthiknadig merged commit 65e3d76 into microsoft:main Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants