From e3680a5f974e4660ba7ae160d6d2fe1dec483eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Tue, 30 May 2023 10:12:41 +0200 Subject: [PATCH] Execution gets stucks on single netstandard source --- src/Microsoft.TestPlatform.CrossPlatEngine/TestEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/TestEngine.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/TestEngine.cs index 3eff1ebb99..920f78fd83 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/TestEngine.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/TestEngine.cs @@ -664,7 +664,7 @@ private static void WarnAboutNotFoundRuntimeProvidersOrThrowWhenNoneAreFound(Lis throw new ArgumentException(null, nameof(testRuntimeProviders)); // Throw when we did not find any runtime provider for any of the provided sources. - var shouldThrow = testRuntimeProviders.All(runtimeProvider => runtimeProvider == null); + var shouldThrow = testRuntimeProviders.All(runtimeProvider => runtimeProvider.Type == null); var missingRuntimeProviders = testRuntimeProviders.Where(p => p.Type == null); if (missingRuntimeProviders.Any())