Better assert message

This commit is contained in:
Gary Gregory 2023-08-14 15:14:45 -04:00
parent 255db44501
commit 1a4414ab3c
1 changed files with 5 additions and 3 deletions

View File

@ -130,9 +130,7 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest {
parseExceptionList.add(new AssertionFailedError(msg,
e));
// HACK check
if (failCount > 43) {
// HACK fail
// Why are builds passing locally for me failing on GitHub?
if (failCount == 1) {
final ByteArrayOutputStream zonesOut = new ByteArrayOutputStream();
final PrintStream zonesPs = new PrintStream(zonesOut);
final AtomicInteger i = new AtomicInteger();
@ -140,6 +138,10 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest {
Stream.of(zones).forEach(zoneArray -> zonesPs.printf("[%,d] %s%n", i.getAndIncrement(), Arrays.toString(zoneArray)));
System.err.println(zonesOut);
System.err.println(parseExceptionList);
}
if (failCount > 43) {
// HACK fail
// Why are builds passing locally for me failing on GitHub?
fail(String.format("failCount = %,d, %s", failCount, msg), e);
}
}