Skip to content

Add basic /admin/purge_history tests#260

Merged
erikjohnston merged 9 commits into
developfrom
erikj/purge_history
Jul 11, 2016
Merged

Add basic /admin/purge_history tests#260
erikjohnston merged 9 commits into
developfrom
erikj/purge_history

Conversation

@erikjohnston
Copy link
Copy Markdown
Member

Comment thread tests/48admin.pl Outdated
content => {}
)->main::expect_http_403; # Must be server admin
})->then( sub {
matrix_sync( $user )
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.

What's this matrix_sync for?

Comment thread tests/48admin.pl Outdated
# 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
Copy Markdown
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?

Comment thread tests/48admin.pl
->then( sub {
matrix_join_room( $remote_user, $room_id )
})->then( sub {
matrix_put_room_state( $user, $room_id,
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.

Maybe add a _synced before calling matrix_sync?

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.

Actually this is probably fine if you don't care what sync token you get here.

@erikjohnston
Copy link
Copy Markdown
Member Author

@matrixbot retest this please

@erikjohnston
Copy link
Copy Markdown
Member Author

@NegativeMjark PTAL

@NegativeMjark
Copy link
Copy Markdown
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