-
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
Add basic /admin/purge_history tests #260
Conversation
content => {} | ||
)->main::expect_http_403; # Must be server admin | ||
})->then( sub { | ||
matrix_sync( $user ) |
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.
What's this matrix_sync
for?
# Wait until the remote server has received the last message, so that | ||
# we know we can later backfill from the remote to get all the events. | ||
repeat( sub { | ||
matrix_sync_again( $remote_user ) |
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.
Maybe add a timeout param here so it doesn't tightloop when polling?
->then( sub { | ||
matrix_join_room( $remote_user, $room_id ) | ||
})->then( sub { | ||
matrix_put_room_state( $user, $room_id, |
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.
Maybe add a _synced
before calling matrix_sync
?
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.
Actually this is probably fine if you don't care what sync token you get here.
@matrixbot retest this please |
@NegativeMjark PTAL |
LGTM |
matrix-org/synapse#911