File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
modules/ingest-common/src/test/java/org/elasticsearch/ingest/common Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -207,10 +207,11 @@ public void testJavaPatternEnglishLocale() {
207207
208208 public void testJavaPatternDefaultYear () {
209209 String format = randomFrom ("dd/MM" , "8dd/MM" );
210+ ZoneId zoneId = ZoneId .of ("Europe/Amsterdam" );
210211 DateProcessor dateProcessor = new DateProcessor (
211212 randomAlphaOfLength (10 ),
212213 null ,
213- templatize (ZoneId . of ( "Europe/Amsterdam" ) ),
214+ templatize (zoneId ),
214215 templatize (Locale .ENGLISH ),
215216 "date_as_string" ,
216217 List .of (format ),
@@ -222,7 +223,7 @@ public void testJavaPatternDefaultYear() {
222223 dateProcessor .execute (ingestDocument );
223224 assertThat (
224225 ingestDocument .getFieldValue ("date_as_date" , String .class ),
225- equalTo (ZonedDateTime .now ().getYear () + "-06-12T00:00:00.000+02:00" )
226+ equalTo (ZonedDateTime .now (zoneId ).getYear () + "-06-12T00:00:00.000+02:00" )
226227 );
227228 }
228229
Original file line number Diff line number Diff line change @@ -275,9 +275,6 @@ tests:
275275- class : org.elasticsearch.gradle.internal.info.BuildParameterExtensionSpec
276276 method : getJavaToolChainSpec is cached anc concurrently accessible
277277 issue : https://github.com/elastic/elasticsearch/issues/119173
278- - class : org.elasticsearch.ingest.common.DateProcessorTests
279- method : testJavaPatternDefaultYear
280- issue : https://github.com/elastic/elasticsearch/issues/119391
281278- class : org.elasticsearch.gradle.LoggedExecFuncTest
282279 method : failed tasks output logged to console when spooling true
283280 issue : https://github.com/elastic/elasticsearch/issues/119509
You can’t perform that action at this time.
0 commit comments