IISIntegration 737 B

12345678910111213141516171819202122232425262728293031323334353637
  1. commit d987b48672012a649866e48c4f466a0bf046e2ec
  2. Author: Justin Kotalik <[email protected]>
  3. Date: Fri Mar 9 12:30:08 2018 -0800
  4. Expect websockets to be disabled on Win7. (#649)
  5. diff --git a/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs b/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs
  6. index 6ade4dc4f13..cf3f2434134 100644
  7. --- a/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs
  8. +++ b/test/IISIntegration.FunctionalTests/UpgradeFeatureDetectionTests.cs
  9. @@ -16,6 +16,8 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
  10. {
  11. public class UpgradeFeatureDetectionTests : LoggedTest
  12. {
  13. + private string _isWebsocketsSupported = Environment.OSVersion.Version >= new Version(6, 2) ? "Enabled" : "Disabled";
  14. +
  15. public UpgradeFeatureDetectionTests(ITestOutputHelper output) : base(output)
  16. {
  17. }
  18. @@ -37,7 +39,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
  19. ApplicationType.Portable,
  20. "AppHostConfig/Http.config",
  21. Helpers.GetInProcessTestSitesPath(),
  22. - "Enabled");
  23. + _isWebsocketsSupported);
  24. }
  25. [Fact]
  26. @@ -57,7 +59,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
  27. ApplicationType.Portable,
  28. "AppHostConfig/Http.config",
  29. Helpers.GetOutOfProcessTestSitesPath(),
  30. - "Enabled");
  31. + _isWebsocketsSupported);
  32. }
  33. private async Task UpgradeFeatureDetectionDeployer(RuntimeFlavor runtimeFlavor,