Files
synapse/tests
Erik JohnstonandClaude Fable 5 9e75f288c2 tests: give mock homeservers a real string hostname
The Rust `LoggingContext` requires `server_name` to be a `str`. Three test
suites built a mock homeserver whose `hostname` was left as an auto-generated
`Mock`, which flowed into `server_name` (via `DatabasePool`, `StateHandler`
and `ApplicationServicesHandler`) and raised `TypeError: argument
'server_name': 'Mock' object is not an instance of 'str'` once a
`LoggingContext`/`Measure` was constructed — 42 trial errors in CI.

Set `hostname` to the server name each suite already uses, so the mocks match
what production passes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VF56cZ93AqpuGCf8yguCcR
2026-07-20 13:11:57 +00:00
..
2026-06-02 11:05:38 +01:00