Skip to content

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

Merged
dvacca-onfido merged 1 commit into
masterfrom
fix/retry-helper-raise-last-error
Oct 28, 2026
Merged

dvacca-onfido merged 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
Collaborator

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
@dvacca-onfido
dvacca-onfido merged commit 83241d6 into master Oct 28, 2026
5 checks passed
@dvacca-onfido
dvacca-onfido deleted the fix/retry-helper-raise-last-error branch October 28, 2026 08:24
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