mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 09:14:14 -04:00
Don't hammer the database for destination retry timings every ~5mins (#10036)
This commit is contained in:
parent
e8ac9ac8ca
commit
3e831f24ff
10 changed files with 62 additions and 76 deletions
|
@ -89,14 +89,8 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase):
|
|||
self.event_source = hs.get_event_sources().sources["typing"]
|
||||
|
||||
self.datastore = hs.get_datastore()
|
||||
retry_timings_res = {
|
||||
"destination": "",
|
||||
"retry_last_ts": 0,
|
||||
"retry_interval": 0,
|
||||
"failure_ts": None,
|
||||
}
|
||||
self.datastore.get_destination_retry_timings = Mock(
|
||||
return_value=defer.succeed(retry_timings_res)
|
||||
return_value=defer.succeed(None)
|
||||
)
|
||||
|
||||
self.datastore.get_device_updates_by_remote = Mock(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue