Expect websockets to be disabled on Win7. (#649)

This commit is contained in:
Justin Kotalik 2018-03-09 12:30:08 -08:00 committed by GitHub
parent 0b07894ea7
commit d987b48672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,8 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
{ {
public class UpgradeFeatureDetectionTests : LoggedTest public class UpgradeFeatureDetectionTests : LoggedTest
{ {
private string _isWebsocketsSupported = Environment.OSVersion.Version >= new Version(6, 2) ? "Enabled" : "Disabled";
public UpgradeFeatureDetectionTests(ITestOutputHelper output) : base(output) public UpgradeFeatureDetectionTests(ITestOutputHelper output) : base(output)
{ {
} }
@ -37,7 +39,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
ApplicationType.Portable, ApplicationType.Portable,
"AppHostConfig/Http.config", "AppHostConfig/Http.config",
Helpers.GetInProcessTestSitesPath(), Helpers.GetInProcessTestSitesPath(),
"Enabled"); _isWebsocketsSupported);
} }
[Fact] [Fact]
@ -57,7 +59,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
ApplicationType.Portable, ApplicationType.Portable,
"AppHostConfig/Http.config", "AppHostConfig/Http.config",
Helpers.GetOutOfProcessTestSitesPath(), Helpers.GetOutOfProcessTestSitesPath(),
"Enabled"); _isWebsocketsSupported);
} }
private async Task UpgradeFeatureDetectionDeployer(RuntimeFlavor runtimeFlavor, private async Task UpgradeFeatureDetectionDeployer(RuntimeFlavor runtimeFlavor,