Skip to content

Commit

Permalink
Fix 'Backfilled events whose prev_events are in a different...' test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Jul 1, 2021
1 parent 4fa32d0 commit e8cada5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/50federation/34room-backfill.pl
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,18 @@
);
})->then( sub {
# wait for it to arrive
my $filter = $json->encode( { room => { timeline => { limit => 2 }}} );
await_sync_timeline_contains(
$creator_user, $room2_id,
filter => $filter,
check => sub {
$_[0]->{event_id} eq $event_id_S
},
);
})->then( sub {
my $filter = $json->encode( { room => { timeline => { limit => 2 }}} );
matrix_sync(
$creator_user,
filter => $filter,
)
})->then( sub {
my ( $sync_body ) = @_;
my $room2_sync = $sync_body->{rooms}->{join}->{$room2_id};
Expand Down

0 comments on commit e8cada5

Please sign in to comment.