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

chore(fake-server): handle server listen errors and retry #5711

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sandor-trombitas
Copy link
Contributor

Adds error handling and retry logic to the listenPromise function in the fake-server.ts file. This ensures that the server can gracefully handle cases where the address is already in use, and retry listening on the specified port after a short delay.
This might aleviate our timeout flaky tests

Pull Request Submission Checklist

  • Follows CONTRIBUTING guidelines
  • Includes detailed description of changes
  • Contains risk assessment (Low | Medium | High)
  • Highlights breaking API changes (if applicable)
  • Links to automated tests covering new functionality
  • Includes manual testing instructions (if necessary)
  • Updates relevant GitBook documentation (PR link: ___)

What does this PR do?

Where should the reviewer start?

How should this be manually tested?

Adds error handling and retry logic to the `listenPromise` function in the
`fake-server.ts` file. This ensures that the server can gracefully handle
cases where the address is already in use, and retry listening on the
specified port after a short delay.
This might aleviate our timeout flaky tests
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