DBZ-2495 Making test slightly more stable

This commit is contained in:
James Gormley 2020-09-29 09:00:01 -04:00 committed by Gunnar Morling
parent 6b5a3100e9
commit b0a4a8b5ba

View File

@ -1428,6 +1428,7 @@ public void whenCaptureInstanceExcludesColumnsAndColumnsRenamedExpectNoErrors()
Arrays.asList("id", "name"));
final Configuration config = TestHelper.defaultConfig()
.with(RelationalDatabaseConnectorConfig.TABLE_INCLUDE_LIST, ".*excluded_column_table_a")
.build();
start(SqlServerConnector.class, config);
@ -1443,7 +1444,7 @@ public void whenCaptureInstanceExcludesColumnsAndColumnsRenamedExpectNoErrors()
connection.execute("INSERT INTO excluded_column_table_a VALUES(11, 'some_name', 120)");
final SourceRecords records = consumeRecordsByTopic(3);
final SourceRecords records = consumeRecordsByTopic(2);
final List<SourceRecord> tableA = records.recordsForTopic("server1.dbo.excluded_column_table_a");
Schema expectedSchema1 = SchemaBuilder.struct()