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

tests: Add retry to first database connection #2514

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

inahga
Copy link
Contributor

@inahga inahga commented Jan 18, 2024

PostgreSQL might not be immediately ready after the container is started. If postgres isn't ready, the first connection to the database will fail. Wrap it in a retry loop to accommodate for this.

@inahga inahga requested a review from a team as a code owner January 18, 2024 23:37
@inahga inahga merged commit 95528c1 into main Jan 19, 2024
8 checks passed
@inahga inahga deleted the inahga/fix-flaky-tests branch January 19, 2024 18:48
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.

None yet

2 participants