Skip to content

Commit

Permalink
ClearCache API tests was failing because it was clearing the recycler…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Nov 16, 2017
1 parent 6c856a8 commit 68c2ca5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClearCacheDescriptor, IClearCacheRequest> Fluent => d => d.Recycler();
protected override Func<ClearCacheDescriptor, IClearCacheRequest> Fluent => d => d.RequestCache();

protected override ClearCacheRequest Initializer => new ClearCacheRequest(AllIndices) { Recycler = true };
protected override ClearCacheRequest Initializer => new ClearCacheRequest(AllIndices) { RequestCache = true };
}
}

0 comments on commit 68c2ca5

Please sign in to comment.