Skip to content

Commit

Permalink
DBZ-4321 More testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Dec 13, 2023
1 parent c104829 commit 31cdd10
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
package io.debezium.connector.informix;

import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Before;

Expand Down Expand Up @@ -105,16 +107,26 @@ protected String getInsertWithNullValue() {

@Override
protected void waitForStreamingStarted() throws InterruptedException {
waitForSnapshotToBeCompleted(TestHelper.TEST_CONNECTOR, TestHelper.TEST_DATABASE);
// consumeRecordsByTopic(0);
waitForStreamingRunning(TestHelper.TEST_CONNECTOR, TestHelper.TEST_DATABASE);
}

private void setRecordsWaitTimeAfterNulls() {
System.setProperty(RECORDS_WAITTIME_AFTER_NULLS, System.getProperty(RECORDS_WAITTIME_AFTER_NULLS, "120"));
// System.setProperty(RECORDS_WAITTIME_AFTER_NULLS, System.getProperty(RECORDS_WAITTIME_AFTER_NULLS, "120"));
}

protected SourceRecords consumeRecordsByTopicReselectWhenNullStreaming() throws InterruptedException {
waitForAvailableRecords(10, TimeUnit.SECONDS);
SourceRecords records = super.consumeRecordsByTopicReselectWhenNullStreaming();
records.allRecordsInOrder().forEach(System.out::println);
return records;
}

protected SourceRecords consumeRecordsByTopicReselectWhenNotNullStreaming() throws InterruptedException {
waitForAvailableRecords(10, TimeUnit.SECONDS);
SourceRecords records = super.consumeRecordsByTopicReselectWhenNotNullStreaming();
records.allRecordsInOrder().forEach(System.out::println);
return records;
}
}

0 comments on commit 31cdd10

Please sign in to comment.