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

Allow for retries when checking if the emulator is running #1459

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

elizabethengelman
Copy link
Contributor

@elizabethengelman elizabethengelman commented Jul 15, 2024

What

Add a retry when checking to see if the ledger emulator container is fully up and running.

The reason we were experiencing intermittent failures with these tests is because when checking if the emulator was fully up and running, sometimes the container wouldn't even be started yet, and would panic in the wait_for_emulator_start_text fn. This change adds a retry with exponential backoff so if the container isn't up yet, and the request fails, it will try again after waiting.

Closes #1379

Why

These tests were flakey, and it was annoying! 😜

Known limitations

N/A

The reason we were experiencing intermittent failures with these tests is
because when checking if the emulator was fully up and running,
sometimes the container wouldn't even be started yet, and would panic in
the `wait_for_emulator_start_text` fn. This change adds a retry with
exponential backoff so if the container isn't up yet, and the request
fails, it will try again after waiting.
@janewang janewang requested a review from willemneal July 15, 2024 21:12
@leighmcculloch leighmcculloch enabled auto-merge (squash) July 16, 2024 01:45
@leighmcculloch leighmcculloch disabled auto-merge July 16, 2024 01:47
@leighmcculloch leighmcculloch enabled auto-merge (squash) July 16, 2024 01:48
@leighmcculloch
Copy link
Member

This PR needs updating to merge. I'm unable to update it because the fork doesn't allow changes from maintainers.

@leighmcculloch leighmcculloch merged commit d19fc13 into stellar:main Jul 16, 2024
24 checks passed
@chadoh chadoh deleted the fix/deflake-the-emulator-tests branch July 16, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fix Emulator test intermittent errors
3 participants