Skip to content

Add a regression test for a /sync bug#712

Merged
richvdh merged 3 commits intomainfrom
rav/sync_archived_room_test
Apr 18, 2024
Merged

Add a regression test for a /sync bug#712
richvdh merged 3 commits intomainfrom
rav/sync_archived_room_test

Conversation

@richvdh
Copy link
Member

@richvdh richvdh commented Feb 19, 2024

Ensure that state is calculated correctly for archived rooms, even when there are no events returned in the timeline.

cf element-hq/synapse#16932

Ensure that `state` is calculated correctly for archived rooms, even when there
are no events returned in the timeline.
@richvdh richvdh requested review from a team as code owners February 19, 2024 16:12

exhaustiveResCheck := func(result gjson.Result, origin string) {
roomRes := result.Get("rooms.leave." + client.GjsonEscape(roomID))
t.Run("timeline has events", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we comment on what each of these subtests are testing here please? (I know this one toy didn't add, but since you're here...)

Copy link
Member Author

Choose a reason for hiding this comment

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

Have added a couple of comments - are they clear enough?

@richvdh richvdh requested a review from erikjohnston April 10, 2024 10:49
@richvdh richvdh merged commit d73c81a into main Apr 18, 2024
@richvdh richvdh deleted the rav/sync_archived_room_test branch April 18, 2024 16:37
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