From 5629f4c5351da7b972b322924a240984033bf65c Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 27 Aug 2023 07:38:54 -0400 Subject: [PATCH] More leniency for Java 17 test for GitHub builds --- .../commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java b/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java index d5ab0ae29..cd8804ba4 100644 --- a/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java +++ b/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java @@ -113,7 +113,7 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest { } catch (ParseException e) { // How do I know I'm on GH? final String localeStr = locale.toString(); - if (SystemUtils.IS_JAVA_17 && localeStr.contains("_")) { + if (SystemUtils.IS_JAVA_17 && localeStr.contains("_") && "Coordinated Universal Time".equals(tzDisplay)) { Java17Failures.add(locale); // Mark as an assumption failure instead of a hard fail System.err.printf("Java 17 - Mark as an assumption failure instead of a hard fail: locale = '%s'%n", localeStr);