React to test regression in HttpResponseMessage.ReasonPhrase.

This commit is contained in:
Chris R 2016-03-07 11:13:15 -08:00
parent 0896ac4f95
commit 2774259461
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Server.WebListener
{
HttpResponseMessage response = await SendRequestAsync(address);
Assert.Equal(901, (int)response.StatusCode);
Assert.Equal(string.Empty, response.ReasonPhrase);
Assert.True(string.IsNullOrEmpty(response.ReasonPhrase)); // https://github.com/dotnet/corefx/issues/6721
Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
}
}

View File

@ -87,7 +87,7 @@ namespace Microsoft.Net.Http.Server
HttpResponseMessage response = await responseTask;
Assert.Equal(901, (int)response.StatusCode);
Assert.Equal(string.Empty, response.ReasonPhrase);
Assert.True(string.IsNullOrEmpty(response.ReasonPhrase)); // https://github.com/dotnet/corefx/issues/6721
Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
}
}