diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-04-01 16:10:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 16:10:31 +0100 |
commit | 33ebee47e4e96a2b6fdf72091769e59034dc550f (patch) | |
tree | e77cad2918fd13cd14100e8e7f2e0856900a69ca /tests/handlers/test_sync.py | |
parent | Default to `private` room visibility rather than `public` when a client does ... (diff) | |
download | synapse-33ebee47e4e96a2b6fdf72091769e59034dc550f.tar.xz |
Remove redundant `get_success` calls in test code (#12346)
There are a bunch of places we call get_success on an immediate value, which is unnecessary. Let's rip them out, and remove the redundant functionality in get_success and friends.
Diffstat (limited to 'tests/handlers/test_sync.py')
-rw-r--r-- | tests/handlers/test_sync.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/handlers/test_sync.py b/tests/handlers/test_sync.py index 3aedc0767b..865b8b7e47 100644 --- a/tests/handlers/test_sync.py +++ b/tests/handlers/test_sync.py @@ -158,9 +158,7 @@ class SyncTestCase(tests.unittest.HomeserverTestCase): ) # Blow away caches (supported room versions can only change due to a restart). - self.get_success( - self.store.get_rooms_for_user_with_stream_ordering.invalidate_all() - ) + self.store.get_rooms_for_user_with_stream_ordering.invalidate_all() self.store._get_event_cache.clear() # The rooms should be excluded from the sync response. |