-
Notifications
You must be signed in to change notification settings - Fork 56
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
Test moving aliases on room upgrades #517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from the boiler plate code to wait for canonical alias to come down sync. It'd be good to find a way to reduce that in both this PR and the other
tests/30rooms/60version_upgrade.pl
Outdated
@@ -51,6 +52,7 @@ sub upgrade_room { | |||
new_version => $new_version, | |||
}, | |||
)->then( sub { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Did you mean to add these new lines?)
} | ||
return 1; | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This feels sad the amount of boiler plate code here)
matrix_get_room_state( | ||
$creator, $room_id, | ||
type=>'m.room.aliases', state_key=>$server_name, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for using matrix_get_room_state
rather than just syncing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided it was going to be a pain to find the right events in the sync. Could change it though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, its fine
3c084da
to
6a6653a
Compare
sigh. retest this please. |
Builds on #513. Tests for matrix-org/synapse#4101.