From 129c37c8b6ec3c1fe9b823cc6b48bd5214dbd577 Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Sun, 3 Jun 2012 20:30:08 -0300 Subject: [PATCH] Added a --chunk-size to the --resume tests. Mainly for the benefit of slow computers, as the tests can occasionally fail there without it. --- t/pt-table-checksum/resume.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/pt-table-checksum/resume.t b/t/pt-table-checksum/resume.t index 9979bcd4..a7df0803 100644 --- a/t/pt-table-checksum/resume.t +++ b/t/pt-table-checksum/resume.t @@ -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');