DBZ-2319 Fix test failure - PostgresConnectorIT#shouldOutputRecordsInCloudEventsFormat

This commit is contained in:
Chris Cranford 2020-07-08 16:08:05 -04:00 committed by Jiri Pechanec
parent 5affa8cbab
commit 0e5122c69d

View File

@ -1625,6 +1625,7 @@ public void shouldOutputRecordsInCloudEventsFormat() throws Exception {
start(PostgresConnector.class, configBuilder.build());
assertConnectorIsRunning();
waitForSnapshotToBeCompleted();
SourceRecords snapshotRecords = consumeRecordsByTopic(2);
List<SourceRecord> snapshot = snapshotRecords.allRecordsInOrder();
@ -1636,6 +1637,7 @@ public void shouldOutputRecordsInCloudEventsFormat() throws Exception {
}
// insert some more records and test streaming
waitForStreamingRunning();
TestHelper.execute(INSERT_STMT);
Testing.Print.enable();