Skip to content

Commit 88409fc

Browse files
committed
Merge pull request #75 from percona/master-slave-module-test-bugs
some error messages changed so changed tests also tweaked progress test timing for pt-table-checksum
2 parents 89eca2c + dcfed36 commit 88409fc

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

t/lib/MasterSlave.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ eval {
719719
};
720720
like(
721721
$EVAL_ERROR,
722-
qr/Invalid recursion method: stuff/,
722+
qr/Only hosts and processlist may be combined/,
723723
"--recursion-method processlist,stuff causes error",
724724
);
725725

@@ -728,7 +728,7 @@ eval {
728728
};
729729
like(
730730
$EVAL_ERROR,
731-
qr/none cannot be combined with other methods/,
731+
qr/Only hosts and processlist may be combined/,
732732
"--recursion-method none,hosts"
733733
);
734734

@@ -737,7 +737,7 @@ eval {
737737
};
738738
like(
739739
$EVAL_ERROR,
740-
qr/none cannot be combined with other methods/,
740+
qr/Only hosts and processlist may be combined/,
741741
"--recursion-method cluster,none"
742742
);
743743

@@ -746,7 +746,7 @@ eval {
746746
};
747747
like(
748748
$EVAL_ERROR,
749-
qr/Invalid combination of recursion methods: none, none/,
749+
qr/Only hosts and processlist may be combined/,
750750
"--recursion-method none,none"
751751
);
752752

t/pt-table-checksum/progress.t

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ $sb->wait_for_slaves();
6969
# TEST_WISHLIST PLUGIN_WISHLIST: do this with a plugin to the tool itself,
7070
# not in this unreliable fashion.
7171

72-
# Frank: this command makes my head hurt. :-)
73-
# notice there are 3 *different* wait type commands involved
74-
# notice final number in the line is the run-time allowed for the "outermost" wait (wait-to-exec). If it is absent it defaults to 1, which may not be enough for sakila.city chunk to appear (at least on my system and for MySQL 5.7
75-
system("$trunk/util/wait-to-exec '$scripts/wait-for-chunk.sh 12345 sakila city 1' '$scripts/exec-wait-exec.sh 12347 \"stop slave sql_thread\" 6 \"start slave sql_thread\"' 8 >/dev/null &");
72+
# Notice there are 3 *different* wait type commands involved
73+
# Final integer in the line is the run-time allowed for the "outermost" wait (wait-to-exec). If it is absent it defaults to 1, which may not be enough for sakila.city# chunk to appear (at least on slow systems)
74+
75+
my $wait_time = $ENV{PERCONA_SLOW_BOX} ? 8 : 4;
76+
system("$trunk/util/wait-to-exec '$scripts/wait-for-chunk.sh 12345 sakila city 1' '$scripts/exec-wait-exec.sh 12347 \"stop slave sql_thread\" $wait_time \"start slave sql_thread\"' $wait_time >/dev/null &");
7677

7778
$output = output(
7879
sub { pt_table_checksum::main(@args, qw(-d sakila)); },

0 commit comments

Comments
 (0)