HydraTestContext: explicitly stop the db

This might, hopefully, I don't know, possibly force the
database to live a little while longer and *reduce* but not
eliminate errors around stopping the database before we lose all
our DB::PG handles to it.
This commit is contained in:
Graham Christensen 2021-12-14 19:51:06 -05:00
parent eca09bc980
commit 1fa141229f

View file

@ -118,6 +118,7 @@ sub DESTROY
{ {
my ($self) = @_; my ($self) = @_;
$self->db(0)->schema->storage->disconnect(); $self->db(0)->schema->storage->disconnect();
$self->{db_handle}->stop();
} }
sub write_file { sub write_file {