Skip to content

test: raise last error when http code retry helper exhausts retries - #130

Open
dvacca-onfido wants to merge 1 commit into
masterfrom
fix/retry-helper-raise-last-error
Open

dvacca-onfido wants to merge 1 commit into
masterfrom
fix/retry-helper-raise-last-error

Conversation

@dvacca-onfido

@dvacca-onfido dvacca-onfido commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The integration test helper for retrying until the HTTP call succeeds (repeat_request_until_http_code_changes or its equivalent) returned an unset/null value when every retry failed, hiding the real API error (e.g. UnboundLocalError in the Python tests). It now raises the last exception.

The helper previously returned an unset/null value after all retries
failed, hiding the real API error. It now surfaces the last exception.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dvacca-onfido dvacca-onfido self-assigned this Oct 21, 2026

This branch has not been deployed

No deployments
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