React to ServerFactory changes.
This commit is contained in:
parent
978e2bb474
commit
a6a17f296d
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNet.Hosting;
|
using Microsoft.AspNet.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
|
|
@ -19,7 +18,7 @@ namespace MusicStore
|
||||||
var config = builder.Build();
|
var config = builder.Build();
|
||||||
|
|
||||||
using (new WebHostBuilder(config)
|
using (new WebHostBuilder(config)
|
||||||
.UseServer("Microsoft.AspNet.Server.WebListener")
|
.UseServerFactory("Microsoft.AspNet.Server.WebListener")
|
||||||
.Build()
|
.Build()
|
||||||
.Start())
|
.Start())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ namespace E2ETests
|
||||||
_logger.LogInformation("Fetching favicon.ico..");
|
_logger.LogInformation("Fetching favicon.ico..");
|
||||||
var response = await _httpClient.GetAsync("favicon.ico");
|
var response = await _httpClient.GetAsync("favicon.ico");
|
||||||
await ThrowIfResponseStatusNotOk(response);
|
await ThrowIfResponseStatusNotOk(response);
|
||||||
|
Assert.NotNull(response.Headers.ETag);
|
||||||
_logger.LogInformation("Etag received: {etag}", response.Headers.ETag.Tag);
|
_logger.LogInformation("Etag received: {etag}", response.Headers.ETag.Tag);
|
||||||
|
|
||||||
//Check if you receive a NotModified on sending an etag
|
//Check if you receive a NotModified on sending an etag
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue