Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
6b1fa329
Unverified
Commit
6b1fa329
authored
4 years ago
by
Brendan Abolivier
Browse files
Options
Downloads
Patches
Plain Diff
Test that a mark_unread action updates the right counter when using a slave store
parent
63d9a00b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/replication/slave/storage/test_events.py
+15
-0
15 additions, 0 deletions
tests/replication/slave/storage/test_events.py
with
15 additions
and
0 deletions
tests/replication/slave/storage/test_events.py
+
15
−
0
View file @
6b1fa329
...
@@ -191,6 +191,21 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
...
@@ -191,6 +191,21 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
{
"
highlight_count
"
:
1
,
"
notify_count
"
:
2
,
"
unread_count
"
:
2
},
{
"
highlight_count
"
:
1
,
"
notify_count
"
:
2
,
"
unread_count
"
:
2
},
)
)
self
.
persist
(
type
=
"
m.room.message
"
,
msgtype
=
"
m.text
"
,
body
=
"
world
"
,
push_actions
=
[
(
USER_ID_2
,
[
"
org.matrix.msc2625.mark_unread
"
])
],
)
self
.
replicate
()
self
.
check
(
"
get_unread_event_push_actions_by_room_for_user
"
,
[
ROOM_ID
,
USER_ID_2
,
event1
.
event_id
],
{
"
highlight_count
"
:
1
,
"
notify_count
"
:
2
,
"
unread_count
"
:
3
},
)
def
test_get_rooms_for_user_with_stream_ordering
(
self
):
def
test_get_rooms_for_user_with_stream_ordering
(
self
):
"""
Check that the cache on get_rooms_for_user_with_stream_ordering is invalidated
"""
Check that the cache on get_rooms_for_user_with_stream_ordering is invalidated
by rows in the events stream
by rows in the events stream
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment