From 6b676d80d552895bfafff87052d1a6877f4e24b2 Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 13 Apr 2017 18:11:21 -0700 Subject: [PATCH] Fix test --- .../AddressRegistrationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs index a32311e57..a09609ad2 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs @@ -248,7 +248,7 @@ public async Task OverrideDirectConfigurationWithIServerAddressesFeature_Succeed host.Start(); Assert.Equal(5002, host.GetPort()); - Assert.Single(testLogger.Messages, log => log.LogLevel == LogLevel.Warning && + Assert.Single(testLogger.Messages, log => log.LogLevel == LogLevel.Information && string.Equals($"Overriding endpoints defined in UseKestrel() since {nameof(IServerAddressesFeature.PreferHostingUrls)} is set to true. Binding to address(es) '{overrideAddress}' instead.", log.Message, StringComparison.Ordinal));