mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 22:54:58 -04:00
Fix stuck notification counts on small servers (#13168)
This commit is contained in:
parent
8d7491a152
commit
723ce73d02
3 changed files with 13 additions and 7 deletions
|
@ -146,12 +146,12 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
|
|||
_assert_counts(0, 0)
|
||||
_inject_actions(1, PlAIN_NOTIF)
|
||||
_assert_counts(1, 0)
|
||||
_rotate(2)
|
||||
_rotate(1)
|
||||
_assert_counts(1, 0)
|
||||
|
||||
_inject_actions(3, PlAIN_NOTIF)
|
||||
_assert_counts(2, 0)
|
||||
_rotate(4)
|
||||
_rotate(3)
|
||||
_assert_counts(2, 0)
|
||||
|
||||
_inject_actions(5, PlAIN_NOTIF)
|
||||
|
@ -162,7 +162,7 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
|
|||
_assert_counts(0, 0)
|
||||
|
||||
_inject_actions(6, PlAIN_NOTIF)
|
||||
_rotate(7)
|
||||
_rotate(6)
|
||||
_assert_counts(1, 0)
|
||||
|
||||
self.get_success(
|
||||
|
@ -178,13 +178,13 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
|
|||
|
||||
_inject_actions(8, HIGHLIGHT)
|
||||
_assert_counts(1, 1)
|
||||
_rotate(9)
|
||||
_rotate(8)
|
||||
_assert_counts(1, 1)
|
||||
|
||||
# Check that adding another notification and rotating after highlight
|
||||
# works.
|
||||
_inject_actions(10, PlAIN_NOTIF)
|
||||
_rotate(11)
|
||||
_rotate(10)
|
||||
_assert_counts(2, 1)
|
||||
|
||||
# Check that sending read receipts at different points results in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue