DBZ-7713 Fix asserts in Mysql ocp tests

This commit is contained in:
Jiri Novotny 2024-03-27 16:06:14 +01:00 committed by Jiří Novotný
parent e2cdc226c6
commit a8d7d20112

View File

@ -46,7 +46,7 @@ public void shouldStreamFromReplica(MySqlReplicaController replicaController, My
insertCustomer(masterController, "Arnold", "Test", "atest@test.com");
String topic = connectorConfig.getDbServerName() + ".inventory.customers";
awaitAssert(() -> assertions.assertRecordsCount(topic, 8));
awaitAssert(() -> assertions.assertRecordsCount(topic, 9));
awaitAssert(() -> assertions.assertRecordsContain(topic, "atest@test.com"));
}
@ -60,7 +60,7 @@ public void shouldStreamAfterMasterRestart(MySqlReplicaController replicaControl
insertCustomer(masterController, "Alex", "master", "amaster@test.com");
String topic = connectorConfig.getDbServerName() + ".inventory.customers";
awaitAssert(() -> assertions.assertRecordsCount(topic, 9));
awaitAssert(() -> assertions.assertRecordsCount(topic, 10));
awaitAssert(() -> assertions.assertRecordsContain(topic, "amaster@test.com"));
// restart only master after replication is complete, otherwise there is danger of duplicates in kafka topics
@ -76,7 +76,7 @@ public void shouldStreamAfterMasterRestart(MySqlReplicaController replicaControl
insertCustomer(masterController, "Tom", "Train", "ttrain@test.com");
awaitAssert(() -> assertions.assertRecordsCount(topic, 10));
awaitAssert(() -> assertions.assertRecordsCount(topic, 11));
awaitAssert(() -> assertions.assertRecordsContain(topic, "ttrain@test.com"));
}
}