From 7e1aa4e1d0990371428650d4fa723c672d0006f8 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Thu, 14 Jul 2016 16:08:39 -0700 Subject: [PATCH] Only test binding to "operational" network interfaces --- .../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 c429dcfc49..2199de4bb0 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs @@ -22,7 +22,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests { public class AddressRegistrationTests { - [Theory, MemberData(nameof(AddressRegistrationDataIPv4))] public async Task RegisterAddresses_IPv4_Success(string addressInput, Func testUrls) { @@ -273,6 +272,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests private static IEnumerable GetIPAddresses() { return NetworkInterface.GetAllNetworkInterfaces() + .Where(i => i.OperationalStatus == OperationalStatus.Up) .SelectMany(i => i.GetIPProperties().UnicastAddresses) .Select(a => a.Address); }