Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Only check aggregate counts for our target room
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Nov 28, 2022
1 parent 4068079 commit ed3809f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/storage/test_event_push_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _assert_counts(notif_count: int, highlight_count: int) -> None:
user_id,
)
)
self.assertEqual(sum(aggregate_counts.values()), notif_count)
self.assertEqual(aggregate_counts[room_id], notif_count)

def _create_event(highlight: bool = False) -> str:
result = self.helper.send_event(
Expand Down Expand Up @@ -335,7 +335,7 @@ def _assert_counts(
)
)
self.assertEqual(
sum(aggregate_counts.values()), notif_count + thread_notif_count
aggregate_counts[room_id], notif_count + thread_notif_count
)

def _create_event(
Expand Down Expand Up @@ -517,7 +517,7 @@ def _assert_counts(
)
)
self.assertEqual(
sum(aggregate_counts.values()), notif_count + thread_notif_count
aggregate_counts[room_id], notif_count + thread_notif_count
)

def _create_event(
Expand Down

0 comments on commit ed3809f

Please sign in to comment.