Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f85ef84

Browse files
authored
fix: use container with Postgres 13 for dump.sql (#15411)
1 parent 9f05b19 commit f85ef84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/database/gen/dump/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ func main() {
3737
}
3838
}()
3939

40-
connection, err := dbtestutil.Open(t)
40+
connection, cleanup, err := dbtestutil.OpenContainerized(t, dbtestutil.DBContainerOptions{})
4141
if err != nil {
4242
panic(err)
4343
}
44+
defer cleanup()
4445

4546
db, err := sql.Open("postgres", connection)
4647
if err != nil {

0 commit comments

Comments
 (0)