Skip to content

Conversation

sashaodessa
Copy link

Description:

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Replaces fixed time.Sleep(time.Second) delays in TestLifecycle with active polling to wait for service readiness/shutdown. This improves test reliability and reduces execution time by eliminating unnecessary waits when services start/stop faster than expected.

Which issues(s) does this PR fix?

N/A - Minor test improvement

Other notes for review

  • Uses 50ms polling interval with 3s timeout for both startup and shutdown checks
  • Maintains same test logic while making it more efficient and less flaky
  • No functional changes to the service itself

Acknowledgements

prestonvanloon
prestonvanloon previously approved these changes Oct 9, 2025
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please add a changelog fragment if you want this PR to merge. Thanks!

@sashaodessa
Copy link
Author

@prestonvanloon added a changelog fragment

auto-merge was automatically disabled October 9, 2025 15:29

Pull Request is not mergeable

@sashaodessa
Copy link
Author

@prestonvanloon any updates?

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.

2 participants