You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/database: allow running db tests under different db name
On a mac, brew install postgresql installs postgres without the postgres user: it uses $USER instead. The current tests don't take that into account. This CL changes that by:
- Amending the connecting URI to explicitly specify the db name (the current "" approach makes use of the postgres user, which by coincidence is the same name as the database we want: now instead of we specify the postgres user).
- One user test is amended to use the env var provided user if necessary.
Also adds some logging to make it more clear why failures around the URI are happening.
Change-Id: I03d5b40a62d7034e00f45ba8151292688ab61de4
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/685995
Reviewed-by: Michael Knyszek <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
kokoro-CI: kokoro <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>
0 commit comments