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 1/4] 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'); From f029baa263ef61505b9fbcc892d81085ba12b967 Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Sun, 3 Jun 2012 21:41:24 -0300 Subject: [PATCH 2/4] Update the test plan for t/pt-log-player/issue_903.t --- t/pt-log-player/issue_903.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/pt-log-player/issue_903.t b/t/pt-log-player/issue_903.t index ceeccd53..5ec1b138 100644 --- a/t/pt-log-player/issue_903.t +++ b/t/pt-log-player/issue_903.t @@ -23,7 +23,7 @@ if ( !$dbh ) { plan skip_all => 'Cannot connect to sandbox master'; } else { - plan tests => 4; + plan tests => 3; } # ############################################################################# From 2fe64a7fb9e06dd9cf2606fa1a665f2df8714e12 Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Sun, 3 Jun 2012 21:52:11 -0300 Subject: [PATCH 3/4] Updated the test plan for t/pt-deadlock-logger/create_dest_table.t --- t/pt-deadlock-logger/create_dest_table.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/pt-deadlock-logger/create_dest_table.t b/t/pt-deadlock-logger/create_dest_table.t index 2a1668c4..3206170c 100644 --- a/t/pt-deadlock-logger/create_dest_table.t +++ b/t/pt-deadlock-logger/create_dest_table.t @@ -23,7 +23,7 @@ if ( !$dbh1 ) { plan skip_all => 'Cannot connect to sandbox master'; } else { - plan tests => 4; + plan tests => 3; } my $output; From 7e32dbc1b300e5805c1f07349cf6d689d157acbd Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Sun, 3 Jun 2012 21:56:15 -0300 Subject: [PATCH 4/4] Updated the test plan for t/pt-deadlock-logger/standard_options.t --- t/pt-deadlock-logger/standard_options.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/pt-deadlock-logger/standard_options.t b/t/pt-deadlock-logger/standard_options.t index cb360c7a..6058ffe0 100644 --- a/t/pt-deadlock-logger/standard_options.t +++ b/t/pt-deadlock-logger/standard_options.t @@ -23,7 +23,7 @@ if ( !$dbh1 ) { plan skip_all => 'Cannot connect to sandbox master'; } else { - plan tests => 11; + plan tests => 10; } my $output;