Skip to content

Commit

Permalink
Test that users receive updates for their own devices (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Apr 20, 2020
1 parent aaac4f5 commit d1b97e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/41end-to-end-keys/06-device-lists.pl
Original file line number Diff line number Diff line change
Expand Up @@ -788,3 +788,17 @@ sub sync_until_user_in_device_list
Future->done(1);
});
};

# regression test for https://github.com/matrix-org/synapse/pull/7160
test "Users receive device_list updates for their own devices",
requires => [ local_user_fixture(), qw( can_sync ) ],

check => sub {
my ( $user1 ) = @_;

matrix_sync( $user1 )->then( sub {
matrix_login_again_with_user( $user1 );
})->then( sub {
sync_until_user_in_device_list( $user1, $user1 );
});
};

0 comments on commit d1b97e8

Please sign in to comment.