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 basic /admin/purge_history tests #260

Merged
merged 9 commits into from
Jul 11, 2016
Merged

Conversation

erikjohnston
Copy link
Member

content => {}
)->main::expect_http_403; # Must be server admin
})->then( sub {
matrix_sync( $user )
Copy link
Contributor

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 )
Copy link
Contributor

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,
Copy link
Contributor

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?

Copy link
Contributor

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.

@erikjohnston
Copy link
Member Author

@matrixbot retest this please

@erikjohnston
Copy link
Member Author

@NegativeMjark PTAL

@NegativeMjark
Copy link
Contributor

LGTM

@erikjohnston erikjohnston merged commit f40820c into develop Jul 11, 2016
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