-
Notifications
You must be signed in to change notification settings - Fork 323
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
Async APIs not working #4592
Comments
VsTestConsoleWrapper.StartSessionAsync()
never succeeds.
This is a long standing issue with the async api, they don't work, and are not really async in the sense that we understand them now (not blocking threads). There have been few attempts to fix this (from my side) but it needs the api to be fully redesigned to avoid additional hacks. |
We are discussing if we should make a breaking change and fix them, or make them obsolete, because in the current form you don't get any additional benefit of using them, they do async over sync. |
We decided to make them obsolete, because the apis don't work, and were not designed for what is nowadays understood as Async. We would have to redesign and completely rewrite the client to follow async practices, which is not something we can commit to right now. |
Description
VsTestConsoleWrapper.StartSessionAsync()
never succeeds.You're awaiting the handshake task here:
vstest/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleRequestSender.cs
Lines 136 to 139 in e9b28ec
Before actually starting the console process here:
vstest/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleWrapper.cs
Line 595 in e9b28ec
Steps to reproduce
Expected behavior
The
Task
returned byStartSessionAsync()
eventually completes.Actual behavior
The
Task
returned byStartSessionAsync()
eventually never completes.Diagnostic logs
None
Environment
vstest.console.exe version:
17.0.33007.217
Target .NET version:
net472
AB#1865062
The text was updated successfully, but these errors were encountered: