diff --git a/tests/30rooms/70publicroomslist.pl b/tests/30rooms/70publicroomslist.pl index b57a96519..8502af213 100644 --- a/tests/30rooms/70publicroomslist.pl +++ b/tests/30rooms/70publicroomslist.pl @@ -165,7 +165,11 @@ # First we fill up the room list a bit (note there will probably already # be entries in it). ( try_repeat { - matrix_create_room( $user, visibility => "public" ) + my $n = $_; + matrix_create_room( $user, visibility => "public" )->on_done( sub { + my ( $body ) = @_; + log_if_fail "Created room $n", $body; + }); } foreach => [ 1 .. 10 ] )->then( sub { # Now we do an un-limited query to work out the number of rooms we # expect. @@ -177,6 +181,8 @@ })->then( sub { my ( $body ) = @_; + log_if_fail "initial /publicRooms response", $body; + $num_rooms = scalar( @{ $body->{chunk} } ); # Now we iterate through the room list, recording how often we see a