Skip to content

Conversation

@MadLittleMods
Copy link
Collaborator

@MadLittleMods MadLittleMods commented Sep 2, 2025

Tests for MSC3871: Gappy timelines

Synapse PR: element-hq/synapse#18873

Dev notes

Document how to hook up Element to the resultant homeservers from Complement: #164

matrix-org/complement -> ONBOARDING.md -> How do I hook up a Matrix client like Element to the homeservers spun up by Complement after a test runs?

Todo

  • Create engineered tests using fake Complement homeserver

Pull Request Checklist

This works to create gaps but for some reason
after backfilling, we still see some gaps
and not all messages appear.
Fixed Synapse to look for backfill points more loosely
because of approximate `depth` comparison
//
// messagesResBody: from a `/messages?dir=b` request (these will be in reverse-chronological order)
// eventIDs: the list of event IDs in chronological order that we expect to see in the response
func assertMessagesInTimelineInOrder(t *testing.T, messagesResBody json.RawMessage, expectedEventIDs []string) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion changed behavior in #816

(update to use assertEventsInOrder)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants