Skip to content

Run before_callback_phase for mocked failures - #1171

Merged
sferik merged 1 commit into
masterfrom
fix-mock-failure-callback-hook
Oct 17, 2026
Merged

sferik merged 1 commit into
masterfrom
fix-mock-failure-callback-hook

Conversation

@sferik

@sferik sferik commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

In test mode, a mocked failure skipped the before_callback_phase hook, unlike real callbacks where the hook always runs. It now runs in both cases.

Fixes #1043

🤖 Generated with Claude Code

In test mode, a mocked failure (mock_auth set to a symbol) went
straight to fail! without calling the before_callback_phase hook, so
tests behaved differently from real callbacks, where the hook always
runs before the callback phase. Call the hook in both cases.

Fixes #1043
@sferik
sferik merged commit 0dd4f5c into master Oct 17, 2026
32 checks passed
@sferik
sferik deleted the fix-mock-failure-callback-hook branch October 17, 2026 17:15
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.

before_callback_phase hook not invoked in mocked failure scenario

1 participant