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() {
207
207
208
208
public void testJavaPatternDefaultYear () {
209
209
String format = randomFrom ("dd/MM" , "8dd/MM" );
210
+ ZoneId zoneId = ZoneId .of ("Europe/Amsterdam" );
210
211
DateProcessor dateProcessor = new DateProcessor (
211
212
randomAlphaOfLength (10 ),
212
213
null ,
213
- templatize (ZoneId . of ( "Europe/Amsterdam" ) ),
214
+ templatize (zoneId ),
214
215
templatize (Locale .ENGLISH ),
215
216
"date_as_string" ,
216
217
List .of (format ),
@@ -222,7 +223,7 @@ public void testJavaPatternDefaultYear() {
222
223
dateProcessor .execute (ingestDocument );
223
224
assertThat (
224
225
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" )
226
227
);
227
228
}
228
229
Original file line number Diff line number Diff line change @@ -275,9 +275,6 @@ tests:
275
275
- class : org.elasticsearch.gradle.internal.info.BuildParameterExtensionSpec
276
276
method : getJavaToolChainSpec is cached anc concurrently accessible
277
277
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
281
278
- class : org.elasticsearch.gradle.LoggedExecFuncTest
282
279
method : failed tasks output logged to console when spooling true
283
280
issue : https://github.com/elastic/elasticsearch/issues/119509
You can’t perform that action at this time.
0 commit comments