Skip to content

Commit d1b97e8

Browse files
authored
Test that users receive updates for their own devices (#854)
1 parent aaac4f5 commit d1b97e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/41end-to-end-keys/06-device-lists.pl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,3 +788,17 @@ sub sync_until_user_in_device_list
788788
Future->done(1);
789789
});
790790
};
791+
792+
# regression test for https://github.com/matrix-org/synapse/pull/7160
793+
test "Users receive device_list updates for their own devices",
794+
requires => [ local_user_fixture(), qw( can_sync ) ],
795+
796+
check => sub {
797+
my ( $user1 ) = @_;
798+
799+
matrix_sync( $user1 )->then( sub {
800+
matrix_login_again_with_user( $user1 );
801+
})->then( sub {
802+
sync_until_user_in_device_list( $user1, $user1 );
803+
});
804+
};

0 commit comments

Comments
 (0)