-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test to make sure you can find imported events before room creation - MSC3030 #405
Add test to make sure you can find imported events before room creation - MSC3030 #405
Conversation
@@ -20,7 +20,7 @@ import ( | |||
) | |||
|
|||
func TestJumpToDateEndpoint(t *testing.T) { | |||
deployment := Deploy(t, b.BlueprintFederationTwoLocalOneRemote) | |||
deployment := Deploy(t, b.BlueprintHSWithApplicationService) |
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.
Using this blueprint now because we need an application service bridge user to interact as in order to use the ?ts
query parameter with the event /send
endpoint.
It has the same remote federated homeserver we need here as well.
…able-when-looking-before-room-creation
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.
lgtm!
Co-authored-by: Sean Quah <[email protected]>
…before room creation (#13197) Complement tests: matrix-org/complement#405 This happens when you have some messages imported before the room is created. Then use MSC3030 to look backwards before the room creation from a remote federated server. The server won't find anything locally, but will ask over federation which will have the remote event. The previous logic would choke on not having the local event assigned. ``` Failed to fetch /timestamp_to_event from hs2 because of exception(UnboundLocalError) local variable 'local_event' referenced before assignment args=("local variable 'local_event' referenced before assignment",) ```
Thanks for the review @squahtx 🐷 |
Add test to make sure you can find imported events before room creation
Synapse changes: matrix-org/synapse#13197
MSC3030