Skip to content

Test validation on send_{join,knock,leave}#132

Merged
richvdh merged 4 commits into
masterfrom
rav/send_membership_validation
Jul 15, 2021
Merged

Test validation on send_{join,knock,leave}#132
richvdh merged 4 commits into
masterfrom
rav/send_membership_validation

Conversation

@richvdh
Copy link
Copy Markdown
Member

@richvdh richvdh commented Jun 23, 2021

Add some tests that try sending things other than proper events via send_{join,knock,leave}

@richvdh richvdh force-pushed the rav/send_membership_validation branch 2 times, most recently from 5720120 to b17977c Compare June 23, 2021 16:05
@richvdh
Copy link
Copy Markdown
Member Author

richvdh commented Jun 23, 2021

based on #131


// SupportedRoomVersions is a convenience method which returns a list of the room versions supported by gomatrixserverlib.
func SupportedRoomVersions() []gomatrixserverlib.RoomVersion {
supportedRoomVersions := make([]gomatrixserverlib.RoomVersion, 0, 10)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why a capacity of 10 ooc?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good question. mostly because I forgot that capacity was optional.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

... though this change has come from #131 rather than here.

Comment thread tests/federation_room_join_test.go
Comment thread tests/msc2403_test.go Outdated
Comment thread tests/federation_room_join_test.go Outdated
@richvdh richvdh force-pushed the rav/send_membership_validation branch from 86fa3f3 to 187fb5b Compare July 12, 2021 16:27
@richvdh richvdh requested a review from a team July 12, 2021 16:27
@richvdh richvdh merged commit bc10252 into master Jul 15, 2021
@richvdh richvdh deleted the rav/send_membership_validation branch July 15, 2021 10:23
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.

3 participants