Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
bf9a11c5
Unverified
Commit
bf9a11c5
authored
5 years ago
by
Brendan Abolivier
Browse files
Options
Downloads
Patches
Plain Diff
Lint again
parent
7c24d0f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/config/server.py
+1
-1
1 addition, 1 deletion
synapse/config/server.py
tests/rest/client/test_retention.py
+2
-10
2 additions, 10 deletions
tests/rest/client/test_retention.py
with
3 additions
and
11 deletions
synapse/config/server.py
+
1
−
1
View file @
bf9a11c5
...
...
@@ -19,7 +19,7 @@ import logging
import
os.path
import
re
from
textwrap
import
indent
from
typing
import
List
,
Dic
t
,
Optional
from
typing
import
Dict
,
Lis
t
,
Optional
import
attr
import
yaml
...
...
This diff is collapsed.
Click to expand it.
tests/rest/client/test_retention.py
+
2
−
10
View file @
bf9a11c5
...
...
@@ -121,11 +121,7 @@ class RetentionTestCase(unittest.HomeserverTestCase):
self
.
reactor
.
advance
(
one_day_ms
*
2
/
1000
)
# Send another event, which shouldn't get filtered out.
resp
=
self
.
helper
.
send
(
room_id
=
room_id
,
body
=
"
2
"
,
tok
=
self
.
token
,
)
resp
=
self
.
helper
.
send
(
room_id
=
room_id
,
body
=
"
2
"
,
tok
=
self
.
token
)
valid_event_id
=
resp
.
get
(
"
event_id
"
)
...
...
@@ -252,11 +248,7 @@ class RetentionNoDefaultPolicyTestCase(unittest.HomeserverTestCase):
def
_test_retention
(
self
,
room_id
,
expected_code_for_first_event
=
200
):
# Send a first event to the room. This is the event we'll want to be purged at the
# end of the test.
resp
=
self
.
helper
.
send
(
room_id
=
room_id
,
body
=
"
1
"
,
tok
=
self
.
token
,
)
resp
=
self
.
helper
.
send
(
room_id
=
room_id
,
body
=
"
1
"
,
tok
=
self
.
token
)
first_event_id
=
resp
.
get
(
"
event_id
"
)
...
...
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