I have been running multiple unit tests in multiple solutions for years. Now, out of seemingly nowhere, every time I try to run a unit test, I get this message in the Tests Output pane:
Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: vstest.console process failed to connect to testhost process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout.
I've tried restarting VS2019, using it in Admin mode, and restarting my computer. I've tried multiple unit tests in different repos that I know worked. All fail to run. I searched around and all of the posts are older and are with people migrating from VS2017 to VS2019 and how they needed to install nuget packages. I have Microsoft.NET.Test.Sdk, MSTest.TestAdapter, MSTest.TestFramework, and coverlet.collector all installed.
Coworkers have pulled the code down and the unit tests run and work fine for them. There has to have been some update or change that is preventing this from working. This just started a few days ago.