diff --git a/tests/31sync/15lazy-members.pl b/tests/31sync/15lazy-members.pl index bbcf7c50a..2234fc17c 100644 --- a/tests/31sync/15lazy-members.pl +++ b/tests/31sync/15lazy-members.pl @@ -597,13 +597,7 @@ })->then( sub { matrix_join_room( $charlie, $room_id ); })->then( sub { - repeat( sub { - my $msgnum = $_[0]; - - matrix_send_room_text_message( $bob, $room_id, - body => "Message $msgnum", - ) - }, foreach => [ 1 .. 10 ]) + matrix_send_filler_messages_synced( $bob, $room_id, 10 ); })->then( sub { matrix_sync( $alice, filter => $filter_id ); })->then( sub { @@ -613,21 +607,9 @@ $bob->user_id, ]); - repeat( sub { - my $msgnum = $_[0]; - - matrix_send_room_text_message( $bob, $room_id, - body => "Message $msgnum", - ) - }, foreach => [ 1 .. 10 ]) + matrix_send_filler_messages_synced( $bob, $room_id, 10 ); })->then( sub { - repeat( sub { - my $msgnum = $_[0]; - - matrix_send_room_text_message( $charlie, $room_id, - body => "Message $msgnum", - ) - }, foreach => [ 1 .. 10 ]) + matrix_send_filler_messages_synced( $charlie, $room_id, 10 ); })->then( sub { matrix_sync_again( $alice, filter => $filter_id ); })->then( sub {