Skip to content

Commit

Permalink
add another err check
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Oct 17, 2024
1 parent 78b6a7e commit 0272ea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testutil/postgresqlhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func CheckTestPGUser(t *testing.T, connURL string, username, password string) {
t.Logf("[TRACE] CheckTestPGUser exists: %v", exists)
if err != nil && err != sql.ErrNoRows {
t.Fatalf("user does not appear to exist: %s", err)
} else if err != nil {
t.Fatalf("unkown error: %s", err)
}
t.Logf("[TRACE] CheckTestPGUser found user")
}
Expand Down

0 comments on commit 0272ea5

Please sign in to comment.