Added a --chunk-size to the --resume tests.

Mainly for the benefit of slow computers, as the tests can occasionally
fail there without it.
This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-06-03 20:30:08 -03:00
parent 48b9dfd70b
commit 129c37c8b6

View File

@@ -78,10 +78,11 @@ my $all_sakila_tables = [
# ############################################################################
$output = output(
sub { pt_table_checksum::main(@args, qw(-d sakila --resume)) },
sub { pt_table_checksum::main(@args, qw(-d sakila --resume --chunk-size 10000)) },
);
$row = $master_dbh->selectall_arrayref('select db, tbl from percona.checksums order by db, tbl');
is_deeply(
$row,
$all_sakila_tables,
@@ -131,7 +132,7 @@ is_deeply(
);
$output = output(
sub { pt_table_checksum::main(@args, qw(-d sakila --resume)) },
sub { pt_table_checksum::main(@args, qw(-d sakila --resume --chunk-size 10000)) },
);
$row = $master_dbh->selectall_arrayref('select db, tbl from percona.checksums order by db, tbl');