Skip to content

Commit

Permalink
Test that users receive updates for their own devices
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Apr 20, 2020
1 parent aaac4f5 commit 6e00d6c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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,19 @@ 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 );
})->then( sub {
die;
});
};

0 comments on commit 6e00d6c

Please sign in to comment.