From d1b97e84e14d88a7a4a6c5bdb75753cd35d0b43f Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 20 Apr 2020 21:02:19 +0100 Subject: [PATCH] Test that users receive updates for their own devices (#854) --- tests/41end-to-end-keys/06-device-lists.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/41end-to-end-keys/06-device-lists.pl b/tests/41end-to-end-keys/06-device-lists.pl index 4ed3b77e0..d5b90e8f4 100644 --- a/tests/41end-to-end-keys/06-device-lists.pl +++ b/tests/41end-to-end-keys/06-device-lists.pl @@ -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 ); + }); + };