From f017b4260ccf5b690de76da252e9fe1e85ab7d83 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 14 Aug 2023 18:50:21 -0400 Subject: [PATCH] Make test more reproducible (not random) --- .../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 7c031a0a1..87898a367 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 @@ -123,7 +123,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 && Arrays.binarySearch(FAILS_ON_GH_JAVA_17, localeStr) > 0) { + if (SystemUtils.IS_JAVA_17 && Arrays.binarySearch(FAILS_ON_GH_JAVA_17, localeStr) >= 0) { 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);