summary refs log tree commit diff
path: root/tests/handlers/test_federation.py
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-05-18 17:02:10 +0200
committerGitHub <noreply@github.com>2022-05-18 16:02:10 +0100
commit50ae4eafe1f8ba31f1977e5dc11c85f15722f1ee (patch)
tree1f46c0431a659175d2cc66b8355add33735e6992 /tests/handlers/test_federation.py
parentMerge branch 'master' into develop (diff)
downloadsynapse-50ae4eafe1f8ba31f1977e5dc11c85f15722f1ee.tar.xz
Add some type hints to `event_federation` datastore (#12753)
Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
Diffstat (limited to 'tests/handlers/test_federation.py')
-rw-r--r--tests/handlers/test_federation.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py
index 060ba5f517..e95dfdce20 100644
--- a/tests/handlers/test_federation.py
+++ b/tests/handlers/test_federation.py
@@ -332,6 +332,7 @@ class FederationTestCase(unittest.FederatingHomeserverTestCase):
             most_recent_prev_event_depth,
         ) = self.get_success(self.store.get_max_depth_of(prev_event_ids))
         # mapping from (type, state_key) -> state_event_id
+        assert most_recent_prev_event_id is not None
         prev_state_map = self.get_success(
             self.state_store.get_state_ids_for_event(most_recent_prev_event_id)
         )