From 19ff001d4c0da14768d81b27d2907cef6aef5427 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 24 Aug 2021 11:20:52 +0100 Subject: [PATCH] Deflake `Can re-join room if re-invited` Fixes (I hope) a problem where the joining user wouldn't see the event sent by the creator. --- tests/30rooms/31forget.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/30rooms/31forget.pl b/tests/30rooms/31forget.pl index 95980a944..86637027c 100644 --- a/tests/30rooms/31forget.pl +++ b/tests/30rooms/31forget.pl @@ -167,7 +167,8 @@ any { $_->{type} eq "m.room.message" && $_->{content}->{body} eq "before leave" } @{ $body->{chunk} } or die "Should have seen before leave message"; - matrix_send_room_text_message( $creator, $room_id, body => "after rejoin" ); + # have the creator send another message, and ensure the joiner can see it. + matrix_send_room_text_message_synced( $creator, $room_id, body => "after rejoin" ); })->then( sub { matrix_get_room_messages( $user, $room_id, limit => 1 ); })->then( sub {