mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 13:14:56 -04:00
Fix an invalid comparison of UserPresenceState
to str
(#14393)
This commit is contained in:
parent
d8cc86eff4
commit
618e4ab81b
5 changed files with 46 additions and 8 deletions
|
@ -778,8 +778,11 @@ def _test_sending_local_online_presence_to_local_user(
|
|||
worker process. The test users will still sync with the main process. The purpose of testing
|
||||
with a worker is to check whether a Synapse module running on a worker can inform other workers/
|
||||
the main process that they should include additional presence when a user next syncs.
|
||||
If this argument is True, `test_case` MUST be an instance of BaseMultiWorkerStreamTestCase.
|
||||
"""
|
||||
if test_with_workers:
|
||||
assert isinstance(test_case, BaseMultiWorkerStreamTestCase)
|
||||
|
||||
# Create a worker process to make module_api calls against
|
||||
worker_hs = test_case.make_worker_hs(
|
||||
"synapse.app.generic_worker", {"worker_name": "presence_writer"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue