-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
@jessienguyen2312 Thank you for the contribution. You have to do two more things:
|
@microsoft-github-policy-service agree |
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Closes #223 (comment)
Added time out procedure to def test_command_code_action(code, contents, command) based on the example on test_linting.py