Repository navigation
test(server): don't report cancelled calls as unmocked network - #53
Merged
Merged
Conversation
OkHttp still runs application interceptors for a call cancelled before its dispatcher thread picked it up. When a family load failed, the cancelled sibling request could reach TestNetworkBlock after the test closed its fixture, so it was reported as an unmocked request and propagatesHTTPFailuresFromEveryRequiredEndpoint failed now and then. A cancelled call never reaches the network, so the block now just fails it. Verified on the VM: the test repeated in-process failed 6/1000 and 267/5000 times before, 0/5000 and 0/20000 after; scripts/check.sh :server passes.
Tarquinen
added a commit
that referenced
this pull request
Nov 12, 2026
…nto feat/assistant Conflicts kept both sides: the root page keeps the Assistant row next to #49's badge rows, the Experimental count still includes the assistant, and the sessions parity row keeps the archived-session routes and the assistant's session note. The Assistant experiment loses its caption, as #49 removed row captions; its footer now says what it does.
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
`propagatesHTTPFailuresFromEveryRequiredEndpoint` failed now and then in CI with an isolation error. When one family request fails, the others are cancelled, but OkHttp still runs the test network block for a call cancelled before it started, often after the test had closed its fixture, so it was reported as an unmocked network request.
Now the test network block fails a cancelled call without reporting it, since a cancelled call never reaches the network. App code is unchanged.