Skip to content

Commit

Permalink
Add more logging to "Guest user can set display names" (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier authored Apr 2, 2020
1 parent 6e732cb commit e207619
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/30rooms/13guestaccess.pl
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,19 @@
displayname => "creeper",
},
)})->then( sub {
my $iter = 0;

retry_until_success {
$iter++;

Future->needs_all(
do_request_json_for( $guest_user,
method => "GET",
uri => $displayname_uri,
)->then( sub {
my ( $body ) = @_;
log_if_fail "Iteration $iter: /displayname result", $body;

assert_eq( $body->{displayname}, "creeper", "Profile displayname" );

Future->done(1);
Expand All @@ -188,6 +194,8 @@
uri => "/r0/rooms/$room_id/state/m.room.member/:user_id",
)->then( sub {
my ( $body ) = @_;
log_if_fail "Iteration $iter: /state result", $body;

assert_eq( $body->{displayname}, "creeper", "Room displayname" );

Future->done(1);
Expand Down

0 comments on commit e207619

Please sign in to comment.