From 1fa141229f62ef188b9e1ec8689e7d80ab5feaf3 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 14 Dec 2021 19:51:06 -0500 Subject: [PATCH] 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. --- t/lib/HydraTestContext.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/t/lib/HydraTestContext.pm b/t/lib/HydraTestContext.pm index 3395f0a7..6d15aaa1 100644 --- a/t/lib/HydraTestContext.pm +++ b/t/lib/HydraTestContext.pm @@ -118,6 +118,7 @@ sub DESTROY { my ($self) = @_; $self->db(0)->schema->storage->disconnect(); + $self->{db_handle}->stop(); } sub write_file {