This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Strip unauthorized fields from
unsigned
object in events received over federation #11530Strip unauthorized fields from
unsigned
object in events received over federation #11530Changes from 8 commits
e5731aa
d3e786d
edc3ebb
e60f9a2
c865eac
bd38e53
c34088a
28b2141
36696da
a3e7258
bdbbbb3
6475c71
e29625b
3451bd4
b8cfe8c
718e168
ae06c9f
f0e9b97
0917991
6f4834c
835a282
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MessageAcceptTests includes a load of its own tests, so by deriving your test class from it in this way, we end up with another copy of those tests, and so do them twice (see https://github.com/matrix-org/synapse/runs/4612144055?check_suite_focus=true#step:8:2560).
I think your tests will be fine without
prev_state
andprev_events
, so I think you can remove them and the calls toget_latest_event_ids_in_room
. Then you can just inherit fromUnitTest
, rather than having to do all the complicated setup inMessageAcceptTests
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out, it's helpful to know.