From c2cc7335d6fe5138792ea1458f4775fb365bc138 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2020 10:56:59 +1000 Subject: [PATCH] Fix date format use in SearchApiDocValueFieldsTests (#4934) (#4945) Relates: elastic/elasticsearch#60044 This commit updates the SearchApiDocValueFieldsTests to use a different date format. Fixes #4920 Co-authored-by: Russ Cam --- tests/Tests/Search/Search/SearchApiTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Tests/Search/Search/SearchApiTests.cs b/tests/Tests/Search/Search/SearchApiTests.cs index c105fb700da..ca0670a2f26 100644 --- a/tests/Tests/Search/Search/SearchApiTests.cs +++ b/tests/Tests/Search/Search/SearchApiTests.cs @@ -285,7 +285,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage new { field = "lastActivity", - format = "weekyear" + format = DateFormat.basic_date }, } }; @@ -306,7 +306,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage ) .DocValueFields(fs => fs .Field(p => p.Name) - .Field(p => p.LastActivity, format: "weekyear") + .Field(p => p.LastActivity, format: DateFormat.basic_date) ); protected override SearchRequest Initializer => new SearchRequest() @@ -324,7 +324,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage Value = "Stable" }), DocValueFields = Infer.Field(p => p.Name) - .And(p => p.LastActivity, format: "weekyear") + .And(p => p.LastActivity, format: DateFormat.basic_date) }; protected override void ExpectResponse(ISearchResponse response)