mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 18:15:02 -04:00
Allow for make_awaitable's return value to be re-used. (#8261)
This commit is contained in:
parent
68cdb3708e
commit
cef00211c8
12 changed files with 56 additions and 70 deletions
|
@ -154,7 +154,7 @@ class ClientIpStoreTestCase(unittest.HomeserverTestCase):
|
|||
user_id = "@user:server"
|
||||
|
||||
self.store.get_monthly_active_count = Mock(
|
||||
side_effect=lambda: make_awaitable(lots_of_users)
|
||||
return_value=make_awaitable(lots_of_users)
|
||||
)
|
||||
self.get_success(
|
||||
self.store.insert_client_ip(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue