[ci] Log records found when expecting no records
This commit is contained in:
parent
737dd7f814
commit
68f31f7662
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user