[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,8 +987,15 @@ protected void assertConnectorNotRunning() {
* Assert that there are no records to consume.
*/
protected void assertNoRecordsToConsume() {
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;
}
}
/**
* Assert that there are only transaction topic records to be consumed.