mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 12:14:56 -04:00
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.
This commit is contained in:
parent
c4cf916ed7
commit
33ebee47e4
13 changed files with 76 additions and 123 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue