Fix and stablize pt-slave-delay tests.

This commit is contained in:
Daniel Nichter
2012-08-11 13:52:41 -06:00
parent 9d023fc1cb
commit a9eabffab9
3 changed files with 23 additions and 25 deletions

View File

@@ -46,7 +46,6 @@ my $output;
# the child should restart the slave, and the tool should report
# that it reconnected and did some work, ending with "Setting slave
# to run normally".
diag('Running...');
my $pid = fork();
if ( $pid ) {
# parent
@@ -65,7 +64,6 @@ else {
diag(`/tmp/12346/start >/dev/null`);
# Ensure we don't break the sandbox -- instance 12347 will be disconnected
# when its master gets rebooted
diag("Restarting slave on instance 12347 after restarting instance 12346");
diag(`/tmp/12347/use -e "stop slave; start slave"`);
exit;
}