From d987b48672012a649866e48c4f466a0bf046e2ec Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Fri, 9 Mar 2018 12:30:08 -0800 Subject: [PATCH] Expect websockets to be disabled on Win7. (#649) --- .../UpgradeFeatureDetectionTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs b/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs index 6ade4dc4f1..cf3f243413 100644 --- a/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs +++ b/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs @@ -16,6 +16,8 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests { public class UpgradeFeatureDetectionTests : LoggedTest { + private string _isWebsocketsSupported = Environment.OSVersion.Version >= new Version(6, 2) ? "Enabled" : "Disabled"; + public UpgradeFeatureDetectionTests(ITestOutputHelper output) : base(output) { } @@ -37,7 +39,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests ApplicationType.Portable, "AppHostConfig/Http.config", Helpers.GetInProcessTestSitesPath(), - "Enabled"); + _isWebsocketsSupported); } [Fact] @@ -57,7 +59,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests ApplicationType.Portable, "AppHostConfig/Http.config", Helpers.GetOutOfProcessTestSitesPath(), - "Enabled"); + _isWebsocketsSupported); } private async Task UpgradeFeatureDetectionDeployer(RuntimeFlavor runtimeFlavor,