[ci] Log records found when expecting no records

This commit is contained in:
Chris Cranford 2024-02-11 09:59:22 -05:00 committed by Chris Cranford
parent 737dd7f814
commit 68f31f7662

View File

@ -987,7 +987,14 @@ protected void assertConnectorNotRunning() {
* Assert that there are no records to consume.
*/
protected void assertNoRecordsToConsume() {
assertThat(consumedLines.isEmpty()).isTrue();
try {
assertThat(consumedLines.isEmpty()).isTrue();
}
catch (org.junit.ComparisonFailure e) {
System.out.println("---Assert Expected No Records, Found These---");
consumedLines.forEach(System.out::println);
throw e;
}
}
/**