mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 03:14:58 +00:00
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:
@@ -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%"');
|
||||
|
||||
|
Reference in New Issue
Block a user