diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2022-11-16 15:25:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 15:25:35 +0000 |
commit | 618e4ab81b70e37bdb8e9224bd84fcfe4b15bdea (patch) | |
tree | ef808471ef6a1696a969a0a6191fe7fd95c9471e /tests/module_api | |
parent | Remove redundant types from comments. (#14412) (diff) | |
download | synapse-618e4ab81b70e37bdb8e9224bd84fcfe4b15bdea.tar.xz |
Fix an invalid comparison of `UserPresenceState` to `str` (#14393)
Diffstat (limited to 'tests/module_api')
-rw-r--r-- | tests/module_api/test_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/module_api/test_api.py b/tests/module_api/test_api.py index 02cef6f876..058ca57e55 100644 --- a/tests/module_api/test_api.py +++ b/tests/module_api/test_api.py @@ -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"} |