diff options
author | Erik Johnston <erik@matrix.org> | 2022-07-04 16:02:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 16:02:21 +0100 |
commit | 723ce73d0253adddfb0264ff50ca4ebce0b70130 (patch) | |
tree | 30353f75bf9b3ab4652d72d19dd3ffc103789120 /tests | |
parent | matrix-synapse-ldap3: 0.2.0 -> 0.2.1 (#13156) (diff) | |
download | synapse-723ce73d0253adddfb0264ff50ca4ebce0b70130.tar.xz |
Fix stuck notification counts on small servers (#13168)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_event_push_actions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/storage/test_event_push_actions.py b/tests/storage/test_event_push_actions.py index 684485ae06..852b663387 100644 --- a/tests/storage/test_event_push_actions.py +++ b/tests/storage/test_event_push_actions.py @@ -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 |