Better assert message
This commit is contained in:
parent
255db44501
commit
1a4414ab3c
|
@ -130,9 +130,7 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest {
|
||||||
parseExceptionList.add(new AssertionFailedError(msg,
|
parseExceptionList.add(new AssertionFailedError(msg,
|
||||||
e));
|
e));
|
||||||
// HACK check
|
// HACK check
|
||||||
if (failCount > 43) {
|
if (failCount == 1) {
|
||||||
// HACK fail
|
|
||||||
// Why are builds passing locally for me failing on GitHub?
|
|
||||||
final ByteArrayOutputStream zonesOut = new ByteArrayOutputStream();
|
final ByteArrayOutputStream zonesOut = new ByteArrayOutputStream();
|
||||||
final PrintStream zonesPs = new PrintStream(zonesOut);
|
final PrintStream zonesPs = new PrintStream(zonesOut);
|
||||||
final AtomicInteger i = new AtomicInteger();
|
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)));
|
Stream.of(zones).forEach(zoneArray -> zonesPs.printf("[%,d] %s%n", i.getAndIncrement(), Arrays.toString(zoneArray)));
|
||||||
System.err.println(zonesOut);
|
System.err.println(zonesOut);
|
||||||
System.err.println(parseExceptionList);
|
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);
|
fail(String.format("failCount = %,d, %s", failCount, msg), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue