mirror of
https://github.com/coder/coder.git
synced 2026-10-29 17:44:33 +08:00
fix: use container with Postgres 13 for dump.sql (#15411)
This commit is contained in:
@@ -37,10 +37,11 @@ func main() {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
connection, err := dbtestutil.Open(t)
|
connection, cleanup, err := dbtestutil.OpenContainerized(t, dbtestutil.DBContainerOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
defer cleanup()
|
||||||
|
|
||||||
db, err := sql.Open("postgres", connection)
|
db, err := sql.Open("postgres", connection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user