From a6a17f296d93828f2042279359e289aee5ac0217 Mon Sep 17 00:00:00 2001 From: Chris R Date: Sat, 31 Oct 2015 07:35:42 -0700 Subject: [PATCH] React to ServerFactory changes. --- src/MusicStore/Program.cs | 3 +-- test/E2ETests/Implementation/Validator.cs | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MusicStore/Program.cs b/src/MusicStore/Program.cs index a0e052c..551c07b 100644 --- a/src/MusicStore/Program.cs +++ b/src/MusicStore/Program.cs @@ -1,5 +1,4 @@ using System; -using System.Threading.Tasks; using Microsoft.AspNet.Hosting; using Microsoft.Extensions.Configuration; @@ -19,7 +18,7 @@ namespace MusicStore var config = builder.Build(); using (new WebHostBuilder(config) - .UseServer("Microsoft.AspNet.Server.WebListener") + .UseServerFactory("Microsoft.AspNet.Server.WebListener") .Build() .Start()) { diff --git a/test/E2ETests/Implementation/Validator.cs b/test/E2ETests/Implementation/Validator.cs index 7e9251b..f1aec1f 100644 --- a/test/E2ETests/Implementation/Validator.cs +++ b/test/E2ETests/Implementation/Validator.cs @@ -96,6 +96,7 @@ namespace E2ETests _logger.LogInformation("Fetching favicon.ico.."); var response = await _httpClient.GetAsync("favicon.ico"); await ThrowIfResponseStatusNotOk(response); + Assert.NotNull(response.Headers.ETag); _logger.LogInformation("Etag received: {etag}", response.Headers.ETag.Tag); //Check if you receive a NotModified on sending an etag