Skip to content
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 a regression test for a /sync bug #712

Merged
merged 3 commits into from
Apr 18, 2024
Merged

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
@@ -190,43 +190,106 @@ func TestArchivedRoomsHistory(t *testing.T) {
},
})

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
4 checks passed
@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