mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 20:44:11 -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
|
@ -268,7 +268,7 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
|
|||
|
||||
event_source = RoomEventSource(self.hs)
|
||||
event_source.store = self.slaved_store
|
||||
current_token = self.get_success(event_source.get_current_key())
|
||||
current_token = event_source.get_current_key()
|
||||
|
||||
# gradually stream out the replication
|
||||
while repl_transport.buffer:
|
||||
|
@ -277,7 +277,7 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
|
|||
self.pump(0)
|
||||
|
||||
prev_token = current_token
|
||||
current_token = self.get_success(event_source.get_current_key())
|
||||
current_token = event_source.get_current_key()
|
||||
|
||||
# attempt to replicate the behaviour of the sync handler.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue