From e448cbd2777a2def1c9e2b8eef074f7c58aacb73 Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Wed, 15 Nov 2023 22:16:37 +0100 Subject: [PATCH] [-] fix `migrateTest` to close opened `pgengine` --- internal/migrator/migrator_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/migrator/migrator_test.go b/internal/migrator/migrator_test.go index d6dd4ee..7bd5c81 100644 --- a/internal/migrator/migrator_test.go +++ b/internal/migrator/migrator_test.go @@ -55,6 +55,7 @@ func migrateTest() error { if err != nil { return err } + defer pge.Finalize() _, _ = pge.ConfigDb.Exec(ctx, "DROP TABLE IF EXISTS foo, bar, baz, migration") db, err := pge.ConfigDb.Acquire(ctx) if err != nil {