Skip to content

Conversation

@mcraveiro
Copy link
Contributor

Summary

  • Add test_helpers.hpp with make_credentials() utility function
  • Function checks PGPASSWORD env var, falls back to "password" if not set
  • Update all 69 postgres test files to use the new helper

This allows running tests against an existing postgres instance without requiring password to be "password".

Test plan

  • Build succeeds
  • test_aggregations passes
  • test_listen_notify tests pass (file with 5 credential usages)

🤖 Generated with Claude Code

Add test_helpers.hpp with make_credentials() that checks for PGPASSWORD
environment variable, falling back to "password" if not set. This allows
running tests against an existing postgres instance.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mcraveiro
Copy link
Contributor Author

Note: I've added this PR because I already have a Postgres instance running on my machine and I rather run the tests against it.

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.

1 participant