diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-02-26 16:58:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 16:58:33 +0000 |
commit | 3e99528f2bfaa686c4708fb8efcddce935b2397d (patch) | |
tree | f06b30584cb39dea98f848683d30f3804a19bcbf /tests | |
parent | Port PresenceHandler to async/await (#6991) (diff) | |
download | synapse-3e99528f2bfaa686c4708fb8efcddce935b2397d.tar.xz |
Store room version on invite (#6983)
When we get an invite over federation, store the room version in the rooms table. The general idea here is that, when we pull the invite out again, we'll want to know what room_version it belongs to (so that we can later redact it if need be). So we need to store it somewhere...
Diffstat (limited to 'tests')
-rw-r--r-- | tests/app/test_openid_listener.py | 8 | ||||
-rw-r--r-- | tests/handlers/test_typing.py | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/app/test_openid_listener.py b/tests/app/test_openid_listener.py index 1fe048048b..89fcc3889a 100644 --- a/tests/app/test_openid_listener.py +++ b/tests/app/test_openid_listener.py @@ -29,6 +29,14 @@ class FederationReaderOpenIDListenerTests(HomeserverTestCase): ) return hs + def default_config(self, name="test"): + conf = super().default_config(name) + # we're using FederationReaderServer, which uses a SlavedStore, so we + # have to tell the FederationHandler not to try to access stuff that is only + # in the primary store. + conf["worker_app"] = "yes" + return conf + @parameterized.expand( [ (["federation"], "auth_fail"), diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py index 07b204666e..51e2b37218 100644 --- a/tests/handlers/test_typing.py +++ b/tests/handlers/test_typing.py @@ -74,6 +74,7 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase): "set_received_txn_response", "get_destination_retry_timings", "get_devices_by_remote", + "maybe_store_room_on_invite", # Bits that user_directory needs "get_user_directory_stream_pos", "get_current_state_deltas", |