From 4fd71e3a6b00699d7be3298fb45a7262048c733e Mon Sep 17 00:00:00 2001 From: Cesar Blum Silveira Date: Tue, 21 Feb 2017 11:08:40 -0800 Subject: [PATCH] Fix 'No data found for...' errors in CI test runs. --- .../AddressRegistrationTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs index ecdd2e97ba..00bd4a0826 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs @@ -442,6 +442,10 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests dataset.Add($"http://[{ip}]:0/", GetTestUrls); } + // There may be no addresses with scope IDs and we need at least one data item in the + // collection, otherwise xUnit fails the test run because a theory has no data. + dataset.Add("http://[::1]:0", GetTestUrls); + return dataset; } }