Skip to content

Commit b04a6ff

Browse files
committed
nit
1 parent 30b0882 commit b04a6ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coderd/database/dbtestutil/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func PGDumpSchemaOnly(dbURL string) ([]byte, error) {
298298
"run",
299299
"--rm",
300300
"--network=host",
301-
fmt.Sprintf("%s:%d", containerImage, minimumPostgreSQLVersion),
301+
fmt.Sprintf("%s:%d", postgresImage, minimumPostgreSQLVersion),
302302
}, cmdArgs...)
303303
}
304304
cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...) //#nosec

coderd/database/dbtestutil/postgres.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/coder/retry"
2727
)
2828

29-
const containerImage = "us-docker.pkg.dev/coder-v2-images-public/public/postgres"
29+
const postgresImage = "us-docker.pkg.dev/coder-v2-images-public/public/postgres"
3030

3131
type ConnectionParams struct {
3232
Username string
@@ -381,7 +381,7 @@ func openContainer(t TBSubset, opts DBContainerOptions) (container, func(), erro
381381
return container{}, nil, xerrors.Errorf("create tempdir: %w", err)
382382
}
383383
runOptions := dockertest.RunOptions{
384-
Repository: containerImage,
384+
Repository: postgresImage,
385385
Tag: strconv.Itoa(minimumPostgreSQLVersion),
386386
Env: []string{
387387
"POSTGRES_PASSWORD=postgres",

0 commit comments

Comments
 (0)