From f85ef84cc58f1c2c2a4063ff406e70c2635d1eec Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Thu, 7 Nov 2024 16:49:26 +0100 Subject: [PATCH] fix: use container with Postgres 13 for dump.sql (#15411) --- coderd/database/gen/dump/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coderd/database/gen/dump/main.go b/coderd/database/gen/dump/main.go index e3e80c5281..0d6364ac56 100644 --- a/coderd/database/gen/dump/main.go +++ b/coderd/database/gen/dump/main.go @@ -37,10 +37,11 @@ func main() { } }() - connection, err := dbtestutil.Open(t) + connection, cleanup, err := dbtestutil.OpenContainerized(t, dbtestutil.DBContainerOptions{}) if err != nil { panic(err) } + defer cleanup() db, err := sql.Open("postgres", connection) if err != nil {