This seems to prevent an error where Bucardo won't start, even though it
waited. I suspect this is becaust earlier tests run that start Bucardo with no
syncs and don't bother to stop it again, because they expect it to exit, as it
did prior to
cc92a976e00df6a5182745b47793b44401e6b336.
Also, don't shut down Postgres on test exit. It just seems to confuse things.
$dbh->do('LISTEN bucardo_nosyncs');
$dbh->commit();
- $self->ctl('start testing');
+ my $output = $self->ctl('start --exit-on-nosync testing');
my $bail = 30;
my $n;
WAITFORIT: {
if ($bail--<0) {
- die "Bucardo did not start, but we waited!\n";
+ $output =~ s/^/# /gmx;
+ die "Bucardo did not start, but we waited! Start output:\n\n$output\n";
}
while ($n = $dbh->func('pg_notifies')) {
my ($name, $pid, $payload) = @$n;
} ## end of empty_test_database
END {
- __PACKAGE__->shutdown_cluster($_) for keys %pgver;
+# __PACKAGE__->shutdown_cluster($_) for keys %pgver;
}
sub shutdown_cluster {