Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Oct 17, 2024
1 parent 8bda4b5 commit 5518ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/postgresqlhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func defaultRunOpts(t *testing.T) docker.RunOptions {

func CheckTestPGUser(t *testing.T, connURL string, username, password string) {
t.Helper()
t.Logf("[TRACE] CheckTestPGUser Querying for test user %q, password %q", username, password, connURL)
t.Logf("[TRACE] CheckTestPGUser Querying for test user %q, password %q, connURL %q", username, password, connURL)

db, err := sql.Open("pgx", connURL)
defer db.Close()
Expand All @@ -58,7 +58,7 @@ func CheckTestPGUser(t *testing.T, connURL string, username, password string) {
err = db.QueryRowContext(ctx, "SELECT exists (SELECT rolname FROM pg_roles WHERE rolname=$1);", username).Scan(&exists)
t.Logf("[TRACE] CheckTestPGUser exists: %v", exists)
if err != nil && err != sql.ErrNoRows {
t.Fatalf("user does not appear to exist: %w", err)
t.Fatalf("user does not appear to exist: %s", err)
}
t.Logf("[TRACE] CheckTestPGUser found user")
}
Expand Down

0 comments on commit 5518ff5

Please sign in to comment.