From 4c37e0f2f825863393bb96b36afd5f4bfd500750 Mon Sep 17 00:00:00 2001 From: Brennan Conroy Date: Thu, 31 Oct 2019 09:14:05 -0700 Subject: [PATCH] fix tests --- .../IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs | 2 +- .../test/Common.FunctionalTests/Utilities/EventLogHelpers.cs | 2 +- .../Inprocess/StdOutRedirectionTests.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs index 5445bd24cc..3acf1a86e0 100644 --- a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs +++ b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/StartupTests.cs @@ -397,7 +397,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProcess Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); var responseContent = await response.Content.ReadAsStringAsync(); Assert.Contains("HTTP Error 500.31 - ANCM Failed to Find Native Dependencies", responseContent); - Assert.Contains("The specified framework 'Microsoft.NETCore.App', version '2.9.9'", responseContent); + Assert.Contains("The framework 'Microsoft.NETCore.App', version '2.9.9'", responseContent); } else { diff --git a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Utilities/EventLogHelpers.cs b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Utilities/EventLogHelpers.cs index 0e714414d0..9332b5deb6 100644 --- a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Utilities/EventLogHelpers.cs +++ b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Utilities/EventLogHelpers.cs @@ -308,7 +308,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests } else { - return "The specified framework 'Microsoft.NETCore.App', version '2.9.9' was not found."; + return "The framework 'Microsoft.NETCore.App', version '2.9.9' was not found."; } } diff --git a/src/Servers/IIS/IIS/test/IIS.Shared.FunctionalTests/Inprocess/StdOutRedirectionTests.cs b/src/Servers/IIS/IIS/test/IIS.Shared.FunctionalTests/Inprocess/StdOutRedirectionTests.cs index 6565a83b2f..7dc70adf9e 100644 --- a/src/Servers/IIS/IIS/test/IIS.Shared.FunctionalTests/Inprocess/StdOutRedirectionTests.cs +++ b/src/Servers/IIS/IIS/test/IIS.Shared.FunctionalTests/Inprocess/StdOutRedirectionTests.cs @@ -34,7 +34,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests StopServer(); EventLogHelpers.VerifyEventLogEvent(deploymentResult, - "The specified framework 'Microsoft.NETCore.App', version '2.9.9' was not found.", Logger); + "The framework 'Microsoft.NETCore.App', version '2.9.9' was not found.", Logger); } [ConditionalFact] @@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests StopServer(); var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, _logFolderPath), Logger); - var expectedString = "The specified framework 'Microsoft.NETCore.App', version '2.9.9' was not found."; + var expectedString = "The framework 'Microsoft.NETCore.App', version '2.9.9' was not found."; EventLogHelpers.VerifyEventLogEvent(deploymentResult, expectedString, Logger); Assert.Contains(expectedString, contents); }