diff --git a/test/Microsoft.AspNetCore.SignalR.Tests.Utils/WebSocketsSupportedConditionAttribute.cs b/test/Microsoft.AspNetCore.SignalR.Tests.Utils/WebSocketsSupportedConditionAttribute.cs index c362238463..5a831e73fb 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests.Utils/WebSocketsSupportedConditionAttribute.cs +++ b/test/Microsoft.AspNetCore.SignalR.Tests.Utils/WebSocketsSupportedConditionAttribute.cs @@ -20,19 +20,14 @@ namespace Microsoft.AspNetCore.SignalR.Tests // .NET Core 2.1 and greater has sockets return true; #else - // Non-Windows platforms have sockets + // Non-Windows platforms have Websockets if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return true; } - // Windows 8 and greater has sockets - if (Environment.Version >= new Version(6, 2)) - { - return true; - } - - return false; + // Windows 8 and greater has Websockets + return Environment.OSVersion.Version >= new Version(6, 2); #endif } }