Skip to content

fix: guard lookupField against Null body in ensureBackendReachable#5310

Open
blackheaven wants to merge 1 commit into
developfrom
gdifolco/fix-flaky-tests-lookup
Open

fix: guard lookupField against Null body in ensureBackendReachable#5310
blackheaven wants to merge 1 commit into
developfrom
gdifolco/fix-flaky-tests-lookup

Conversation

@blackheaven

Copy link
Copy Markdown
Contributor

When the federator returns a response with an empty/Null JSON body during backend warmup, lookupField res.json "inner" threw an uncaught assertion failure that aborted the retry loop (the surrounding E.try only catches HttpException). Wrap the call with catchAll so a Null body yields Nothing and the retry continues, instead of crashing testNotificationsForOfflineBackends.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

When the federator returns a response with an empty/Null JSON body
during backend warmup, lookupField res.json "inner" threw an
uncaught assertion failure that aborted the retry loop (the
surrounding E.try only catches HttpException). Wrap the call with
catchAll so a Null body yields Nothing and the retry continues,
instead of crashing testNotificationsForOfflineBackends.
@blackheaven blackheaven marked this pull request as ready for review July 2, 2026 21:02
@blackheaven blackheaven requested a review from a team as a code owner July 2, 2026 21:02
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants