Skip to content

Test that disabled client well-known lookups make no network request - #34923

Draft
langleyd wants to merge 1 commit into
developfrom
fix/well-known-lookups-disabled
Draft

Test that disabled client well-known lookups make no network request#34923
langleyd wants to merge 1 commit into
developfrom
fix/well-known-lookups-disabled

Conversation

@langleyd

@langleyd langleyd commented Sep 3, 2026

Copy link
Copy Markdown
Member

Resolves #34921
Depends on matrix-org/matrix-js-sdk#5521
The existing MatrixClientPeg tests only check the option handed to the SDK (clientWellKnownPollPeriod unset when
enable_client_well_known_lookups is false), so they stayed green when matrix-js-sdk stopped honouring that option (matrix-org/matrix-js-sdk#5470, shipped in js-sdk 42.2.0 / Element Web 1.12.26).

Now it starts a real MatrixClient against the fetch mock instead and assert on the requests actually made: the well-known is requested by default and never requested when the config disables the lookups.

The second case fails against matrix-js-sdk develop until matrix-org/matrix-js-sdk#5521 lands.

The existing MatrixClientPeg tests only check the option handed to the
SDK (`clientWellKnownPollPeriod` unset when
`enable_client_well_known_lookups` is false), so they stayed green when
matrix-js-sdk stopped honouring that option (matrix-org/matrix-js-sdk#5470,
shipped in js-sdk 42.2.0 / Element Web 1.12.26).

Start a real MatrixClient against the fetch mock instead and assert on
the requests actually made: the well-known is requested by default and
never requested when the config disables the lookups. The second case
fails against matrix-js-sdk develop until the SDK fix lands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enable_client_well_known_lookups has regressed due to an js-sdk regression

1 participant