Skip to content

Fix "Event with an invalid signature in the send_join response should not cause room join to fail"#973

Merged
neilalexander merged 2 commits intodevelopfrom
neilalexander/fixsigtest
Oct 14, 2020
Merged

Fix "Event with an invalid signature in the send_join response should not cause room join to fail"#973
neilalexander merged 2 commits intodevelopfrom
neilalexander/fixsigtest

Conversation

@neilalexander
Copy link
Contributor

This makes two changes:

  1. Waits for the membership to appear over /sync, instead of immediately hitting /state, since the roomserver might not know about that room yet
  2. Crafts an event using a user that's actually in the room, such that the event won't fail auth checks

@neilalexander neilalexander requested a review from kegsay October 14, 2020 14:52
Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

This is the test I pointed @erikjohnston at when I was last in the office. This change matches the test description far better.

@neilalexander neilalexander merged commit 37a5aee into develop Oct 14, 2020
@neilalexander neilalexander deleted the neilalexander/fixsigtest branch October 14, 2020 15:06
richvdh added a commit that referenced this pull request Oct 16, 2020
For the second time this week (#972 and #973), I've found myself wondering why
a test was failing and discovered that it is due to it relying on new
functionality in Future 0.45. I guess we may as well bump the dep as try to
keep our tests backwards-compatible, particularly given the CI uses the latest
version.
richvdh added a commit that referenced this pull request Oct 19, 2020
For the second time this week (#972 and #973), I've found myself wondering why
a test was failing and discovered that it is due to it relying on new
functionality in Future 0.45. I guess we may as well bump the dep as try to
keep our tests backwards-compatible, particularly given the CI uses the latest
version.
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