Fixed flaky tests

The tests previously tested assertions against the replica after
executing changes in the source without waiting for the
replication to converge.
This commit is contained in:
Henning Poettker
2024-11-14 22:58:42 +01:00
parent b6dff19d97
commit f8d736a89a
3 changed files with 7 additions and 7 deletions

View File

@@ -37,13 +37,7 @@ $sb->create_dbs($source_dbh, ['test']);
$sb->load_file('source', "t/lib/samples/char-chunking/ascii.sql", "test");
$source_dbh->do('alter table test.ascii drop column `i`');
wait_until(
sub {
my $row;
eval {$row = $replica_dbh->selectall_arrayref("select * from test.ascii");};
return 1 if $row && @$row > 100;
},
);
$sb->wait_for_replicas();
$replica_dbh->do('delete from test.ascii where c like "Zesus%"');