mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 23:45:44 +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:
@@ -40,6 +40,8 @@ $sb->wipe_clean($replica_dbh);
|
||||
$sb->create_dbs($source_dbh, [qw(issue218)]);
|
||||
$sb->use('source', '-e "CREATE TABLE issue218.t1 (i INT)"');
|
||||
$sb->use('source', '-e "INSERT INTO issue218.t1 VALUES (NULL)"');
|
||||
$sb->wait_for_replicas();
|
||||
|
||||
qx($trunk/bin/pt-table-sync --no-check-replica --print --database issue218 h=127.1,P=12345,u=msandbox,p=msandbox P=12346);
|
||||
ok(!$?, 'Issue 218: NULL values compare as equal');
|
||||
|
||||
|
Reference in New Issue
Block a user