diff options
author | David Robertson <davidr@element.io> | 2022-06-15 11:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 11:49:58 +0100 |
commit | a4ae1406d15280156510d0a07e85de8203ae1e6c (patch) | |
tree | b168b965f2706488c1cdbbfb7f56f946c982c7c0 /tests | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-a4ae1406d15280156510d0a07e85de8203ae1e6c.tar.xz |
Fix typechecks against twisted trunk (#13061)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handlers/test_federation.py | 8 | ||||
-rw-r--r-- | tests/state/test_v2.py | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py index e0eda545b9..9afba7b0e8 100644 --- a/tests/handlers/test_federation.py +++ b/tests/handlers/test_federation.py @@ -119,7 +119,7 @@ class FederationTestCase(unittest.FederatingHomeserverTestCase): join_event = self._build_and_send_join_event(OTHER_SERVER, OTHER_USER, room_id) # check the state group - sg = self.successResultOf( + sg = self.get_success( self.store._get_state_group_for_event(join_event.event_id) ) @@ -149,7 +149,7 @@ class FederationTestCase(unittest.FederatingHomeserverTestCase): self.assertIsNotNone(e.rejected_reason) # ... and the state group should be the same as before - sg2 = self.successResultOf(self.store._get_state_group_for_event(ev.event_id)) + sg2 = self.get_success(self.store._get_state_group_for_event(ev.event_id)) self.assertEqual(sg, sg2) @@ -172,7 +172,7 @@ class FederationTestCase(unittest.FederatingHomeserverTestCase): join_event = self._build_and_send_join_event(OTHER_SERVER, OTHER_USER, room_id) # check the state group - sg = self.successResultOf( + sg = self.get_success( self.store._get_state_group_for_event(join_event.event_id) ) @@ -203,7 +203,7 @@ class FederationTestCase(unittest.FederatingHomeserverTestCase): self.assertIsNotNone(e.rejected_reason) # ... and the state group should be the same as before - sg2 = self.successResultOf(self.store._get_state_group_for_event(ev.event_id)) + sg2 = self.get_success(self.store._get_state_group_for_event(ev.event_id)) self.assertEqual(sg, sg2) diff --git a/tests/state/test_v2.py b/tests/state/test_v2.py index 78b83d97b6..2e3f2318d9 100644 --- a/tests/state/test_v2.py +++ b/tests/state/test_v2.py @@ -495,6 +495,7 @@ class StateTestCase(unittest.TestCase): prev_events = list(graph[node_id]) + state_before: StateMap[str] if len(prev_events) == 0: state_before = {} elif len(prev_events) == 1: |