From 13dcfbfdb6815a134d55c5c60892cad27d49973b Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 10 Oct 2017 16:42:03 +0200 Subject: [PATCH] ClearCache API tests was failing because it was clearing the recycler cache https://github.com/elastic/elasticsearch/issues/26947 --- .../StatusManagement/ClearCache/ClearCacheApiTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tests/Indices/StatusManagement/ClearCache/ClearCacheApiTests.cs b/src/Tests/Indices/StatusManagement/ClearCache/ClearCacheApiTests.cs index 6310fc33b94..92ef288615b 100644 --- a/src/Tests/Indices/StatusManagement/ClearCache/ClearCacheApiTests.cs +++ b/src/Tests/Indices/StatusManagement/ClearCache/ClearCacheApiTests.cs @@ -23,10 +23,10 @@ protected override LazyResponses ClientUsage() => Calls( protected override bool ExpectIsValid => true; protected override int ExpectStatusCode => 200; protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override string UrlPath => "/_cache/clear?recycler=true"; + protected override string UrlPath => "/_cache/clear?request_cache=true"; - protected override Func Fluent => d => d.Recycler(); + protected override Func Fluent => d => d.RequestCache(); - protected override ClearCacheRequest Initializer => new ClearCacheRequest(AllIndices) { Recycler = true }; + protected override ClearCacheRequest Initializer => new ClearCacheRequest(AllIndices) { RequestCache = true }; } }