Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jan 7, 2025
1 parent 4076402 commit 314d1cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/postgres/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func TestWithSSL(t *testing.T) {
caCert, serverCerts, err := createSSLCerts(t)
require.NoError(t, err)

container, err := postgres.Run(ctx,
ctr, err := postgres.Run(ctx,
"postgres:16-alpine",
postgres.WithConfigFile(filepath.Join("testdata", "postgres-ssl.conf")),
postgres.WithInitScripts(filepath.Join("testdata", "init-user-db.sh")),
Expand All @@ -226,10 +226,10 @@ func TestWithSSL(t *testing.T) {
postgres.WithSSLCert(caCert.CertPath, serverCerts.CertPath, serverCerts.KeyPath),
)

testcontainers.CleanupContainer(t, container)
testcontainers.CleanupContainer(t, ctr)
require.NoError(t, err)

connStr, err := container.ConnectionString(ctx, "sslmode=require")
connStr, err := ctr.ConnectionString(ctx, "sslmode=require")
require.NoError(t, err)

db, err := sql.Open("postgres", connStr)
Expand Down

0 comments on commit 314d1cf

Please sign in to comment.