Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better postgresql test defaults on OSX #3244

Merged
merged 3 commits into from
May 10, 2020

Conversation

sheerun
Copy link
Contributor

@sheerun sheerun commented May 7, 2020

What changed?

  • on OSX sets postgresql username / password to "$USER" and empty string (defaults for homebrew)
  • fixes some related comments

Why?

  • better out-of-the-box testing experience on osx

How did you test it?

  • I've run postgresql tests with go test -v github.com/uber/cadence/common/persistence/sql/sqlplugin/postgres

Potential risks

Can fail if someone has already configured postgresql in non-standard way with postgres / cadence username / password on OSX

environment/env.go Outdated Show resolved Hide resolved
@sheerun
Copy link
Contributor Author

sheerun commented May 8, 2020

I hope it's acceptable now

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 68.25% when pulling 4f3b43c on sheerun:better-postgres-defaults into df82425 on uber:master.

@yycptt yycptt merged commit 83809d8 into uber:master May 10, 2020
mkolodezny pushed a commit to mkolodezny/cadence that referenced this pull request May 11, 2020
Co-authored-by: Liang Mei <meiliang86@gmail.com>
Co-authored-by: Yichao Yang <ycyang@uber.com>
yux0 pushed a commit to yux0/cadence that referenced this pull request May 4, 2021
Co-authored-by: Liang Mei <meiliang86@gmail.com>
Co-authored-by: Yichao Yang <ycyang@uber.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants