Fix helix test (#10695)

This commit is contained in:
Justin Kotalik 2019-05-31 13:27:49 -07:00 committed by GitHub
parent 3c2e16bf92
commit b2fa47d379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -375,9 +375,12 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProcess
Helpers.ModifyFrameworkVersionInRuntimeConfig(deploymentResult);
if (DeployerSelector.HasNewShim)
{
await AssertSiteFailsToStartWithInProcessStaticContent(deploymentResult, "HTTP Error 500.31 - ANCM Failed to Find Native Dependencies");
var responseString = await deploymentResult.HttpClient.GetStringAsync("/HelloWorld");
Assert.Contains("The specified framework 'Microsoft.NETCore.App', version '2.9.9'", responseString);
var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
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);
}
else
{