-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Tests try to connect with wrong user #868
Comments
Weird - try setting the connection params w/ environment variables instead
On Mon, Oct 5, 2015 at 11:43 AM, Alexander Schepanovski <
|
That worked. Should docs and/or |
I'm seeing this same issue on
Using the environment variables works:
Is this expected behaviour? |
@whymarrh How are you passing the connection string to pg? |
I'm passing the export default new Database(new Pool({
connectionString: <string> process.env.PG_CONNECTION,
})); It doesn't work on macOS but surprisingly this works fine (albeit with prod credentials) on Linux. |
@whymarrh Does it work if you use a string literal instead of |
Turns Out™ the environment variable was being unset. My bad, I should've debugged further before commenting. Thanks for the help! |
I am trying to run tests with
and also just
npm test
And both times I get:
Looks like it's trying to connect with current user instead of
postgres
.The text was updated successfully, but these errors were encountered: