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 {