-
Notifications
You must be signed in to change notification settings - Fork 339
Ensure to send a session complete event #4878
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
Conversation
Evangelink
left a comment
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 it possible to setup some test to capture this case and avoid regressions?
|
Added a unit test and updated the previous Verify that was moved |
| { | ||
| // Note: StartTestSession will invoke the HandleStartTestSessionComplete event | ||
| // if the test session is started successfully. If it is not started, we need | ||
| // to invoke the event here. |
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.
Can the comment also explain why we need to do that, please?
Evangelink
left a comment
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.
From what I can grasp lgtm.
Fixes the issue that if starting sessions fails, vstest console will not receive a completion event, thus will keep waiting on the StartSession call indefinitely.