Skip to content

Commit 3c1827f

Browse files
committed
Isolate "random" failing tests from
FastDateParser_TimeZoneStrategyTest.testTimeZoneStrategyPattern_TimeZone_getAvailableIDs - Add FastDateParser_TimeZoneStrategyTest.testTimeZoneStrategyPatternPortugal_ST() - Add FastDateParser_TimeZoneStrategyTest.testTimeZoneStrategyPatternPortugal_TL()
1 parent 5561193 commit 3c1827f

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void testTimeZoneStrategyPattern_zh_HK_Hans() throws ParseException {
237237
}
238238

239239
/**
240-
* Breaks randomly on GitHub for Locale "pt_PT", TimeZone "Etc/UTC" if we do not check if the Locale's language is "undetermined".
240+
* Breaks randomly on GitHub CI for Locale "pt_PT", TimeZone "Etc/UTC" if we do not check if the Locale's language is "undetermined".
241241
*
242242
* <pre>{@code
243243
* java.text.ParseException: Unparseable date: Horário do Meridiano de Greenwich: with tzDefault =
@@ -248,10 +248,30 @@ void testTimeZoneStrategyPattern_zh_HK_Hans() throws ParseException {
248248
* @throws ParseException Test failure
249249
*/
250250
@Test
251-
void testTimeZoneStrategyPatternPortugal() throws ParseException {
251+
void testTimeZoneStrategyPatternPortugal_PT() throws ParseException {
252252
testTimeZoneStrategyPattern("pt_PT", "Horário do Meridiano de Greenwich");
253253
}
254254

255+
/**
256+
* Breaks randomly on GitHub CI for Java 25 and Locale "pt_ST", TimeZone "Hora padrão de Damasco".
257+
*
258+
* @throws ParseException Test failure
259+
*/
260+
@Test
261+
void testTimeZoneStrategyPatternPortugal_ST() throws ParseException {
262+
testTimeZoneStrategyPattern("pt_ST", "Hora padrão de Damasco");
263+
}
264+
265+
/**
266+
* Breaks randomly on GitHub CI for Java 25 and Locale "pt_TL", TimeZone "Hora padrão de Damasco".
267+
*
268+
* @throws ParseException Test failure
269+
*/
270+
@Test
271+
void testTimeZoneStrategyPatternPortugal_TL() throws ParseException {
272+
testTimeZoneStrategyPattern("pt_TL", "Hora padrão de Damasco");
273+
}
274+
255275
/**
256276
* Breaks randomly on GitHub for Locale "sr_ME_#Cyrl", TimeZone "Etc/UTC" if we do not check if the Locale's language is "undetermined".
257277
*

0 commit comments

Comments
 (0)