Skip to content

Conversation

@elizabethengelman
Copy link
Collaborator

@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
@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