FYI: there is a 5 second timeout when building the host in .NET 6 (Run not debug). I ran into this issue locally because we use AzureKeyVault on startup. The workaround is to run your tests in Debug for the time being. The dotnet team added an environment variable that should be available on the next .NET 6 release.
https://github.com/dotnet/runtime/pull/61688/files#diff-cc14cb45f5c4f280fd9753458d51804aeed784e4ee49299548ebf1d65bc94ed6L25
FYI: there is a 5 second timeout when building the host in .NET 6 (Run not debug). I ran into this issue locally because we use AzureKeyVault on startup. The workaround is to run your tests in Debug for the time being. The dotnet team added an environment variable that should be available on the next .NET 6 release.
https://github.com/dotnet/runtime/pull/61688/files#diff-cc14cb45f5c4f280fd9753458d51804aeed784e4ee49299548ebf1d65bc94ed6L25