Skip to content

test: deflake probe connection lifecycle assertion#4545

Open
arnabnandy7 wants to merge 1 commit into
GoogleCloudPlatform:postgresql-dialectfrom
arnabnandy7:fix/probe-connection-flaky-test
Open

test: deflake probe connection lifecycle assertion#4545
arnabnandy7 wants to merge 1 commit into
GoogleCloudPlatform:postgresql-dialectfrom
arnabnandy7:fix/probe-connection-flaky-test

Conversation

@arnabnandy7

Copy link
Copy Markdown
Contributor

Summary

  • Deflake ProxyServerTest.testProbeConnection by replacing tight busy-wait loops with a bounded polling helper.
  • Ensure the test server is stopped in a finally block so assertion failures do not leave async server state behind.

Fixes

Fixes #4542

Testing

  • mvn -B -Dtest=ProxyServerTest#testProbeConnection test
  • mvn -B -Dtest=ProxyServerTest test

@arnabnandy7

Copy link
Copy Markdown
Contributor Author

@olavloite please review once the checks are complete

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.

Flaky Test: ProxyServerTest.testProbeConnection

1 participant