From 62b4eb26e83d21cad8d3f549ccc85ab9838b5fff Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Wed, 6 Nov 2024 16:50:58 +0000 Subject: [PATCH] OpenContainerized in db dump --- 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 e3e80c528144e..0d6364ac562a5 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 {