Skip to content

Commit

Permalink
DBZ-5527 Fix test failures - SqlServerConnectorIT#verifyOffsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Aug 18, 2022
1 parent 9b1bb0d commit 313ded0
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -825,6 +825,11 @@ public void verifyOffsets() throws Exception {
start(SqlServerConnector.class, config);
assertConnectorIsRunning();

TestHelper.waitForStreamingStarted();

Awaitility.await().atMost(30, TimeUnit.SECONDS)
.until(() -> connection.getMaxLsn(TestHelper.TEST_DATABASE_1).isAvailable());

final SourceRecords sourceRecords = consumeRecordsByTopic(RECORDS_PER_TABLE * TABLES);
final List<SourceRecord> tableA = sourceRecords.recordsForTopic("server1.testDB1.dbo.tablea");
final List<SourceRecord> tableB = sourceRecords.recordsForTopic("server1.testDB1.dbo.tableb");
Expand Down

0 comments on commit 313ded0

Please sign in to comment.