mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-17 04:19:13 -04:00
Write some tests for the email pusher (#4095)
This commit is contained in:
parent
169851b412
commit
0dce9e1379
10 changed files with 182 additions and 13 deletions
|
@ -85,7 +85,10 @@ class EmailPusher(object):
|
|||
self.timed_call = None
|
||||
|
||||
def on_new_notifications(self, min_stream_ordering, max_stream_ordering):
|
||||
self.max_stream_ordering = max(max_stream_ordering, self.max_stream_ordering)
|
||||
if self.max_stream_ordering:
|
||||
self.max_stream_ordering = max(max_stream_ordering, self.max_stream_ordering)
|
||||
else:
|
||||
self.max_stream_ordering = max_stream_ordering
|
||||
self._start_processing()
|
||||
|
||||
def on_new_receipts(self, min_stream_id, max_stream_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue