From 3c9d061b724e12314889674a1a59e4b08ad2d576 Mon Sep 17 00:00:00 2001 From: Tomasz Setkowski Date: Wed, 13 Feb 2019 18:53:59 +0000 Subject: [PATCH] fix test expectations with search removed from cached endpoint #9 --- tests/LiGet.Tests/NuGetClientIntegrationTest.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/LiGet.Tests/NuGetClientIntegrationTest.cs b/tests/LiGet.Tests/NuGetClientIntegrationTest.cs index f6bebc6..5f2d0e4 100644 --- a/tests/LiGet.Tests/NuGetClientIntegrationTest.cs +++ b/tests/LiGet.Tests/NuGetClientIntegrationTest.cs @@ -40,6 +40,10 @@ public class NuGetClientIntegrationTest : IDisposable new object[] { CacheIndex }, new object[] { CompatCacheIndex }, }; + public static IEnumerable V3CasesExcludingCache = new[] { + new object[] { MainIndex }, + new object[] { CompatIndex }, + }; public static IEnumerable V2Cases = new[] { new object[] { V2Index }, new object[] { CompatV2Index } @@ -137,7 +141,7 @@ public async Task V2IndexResourceReturnsODataServiceDocument(string indexEndpoin } [Theory] - [MemberData(nameof(V3Cases))] + [MemberData(nameof(V3CasesExcludingCache))] public async Task IndexIncludesAtLeastOneSearchQueryEntry(string indexEndpoint) { InitializeClient(indexEndpoint); @@ -164,7 +168,7 @@ public async Task IndexIncludesAtLeastOnePackageBaseAddressEntry(string indexEnd } [Theory] - [MemberData(nameof(V3Cases))] + [MemberData(nameof(V3CasesExcludingCache))] public async Task IndexIncludesAtLeastOneSearchAutocompleteServiceEntry(string indexEndpoint) { InitializeClient(indexEndpoint);