From 6a613a7c3ecd255df2e16601d2f390790f3afa85 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Sun, 26 Jul 2020 14:37:42 +0200 Subject: [PATCH] Fix bad tests --- tests/10apidoc/03events-initial.pl | 4 +--- tests/10apidoc/11profile-avatar_url.pl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/10apidoc/03events-initial.pl b/tests/10apidoc/03events-initial.pl index d26a43363..05681256d 100644 --- a/tests/10apidoc/03events-initial.pl +++ b/tests/10apidoc/03events-initial.pl @@ -228,9 +228,7 @@ sub matrix_sync )->on_done( sub { my ( $body ) = @_; - assert_json_keys( $body, qw( account_data rooms presence next_batch ) ); - assert_json_keys( $body->{presence}, qw( events )); - assert_json_keys( $body->{rooms}, qw( join invite leave ) ); + assert_json_keys( $body, qw( next_batch ) ); if ( $update_next_batch ) { $user->sync_next_batch = $body->{next_batch}; diff --git a/tests/10apidoc/11profile-avatar_url.pl b/tests/10apidoc/11profile-avatar_url.pl index d004fa469..4a9465355 100644 --- a/tests/10apidoc/11profile-avatar_url.pl +++ b/tests/10apidoc/11profile-avatar_url.pl @@ -1,6 +1,6 @@ my $user_fixture = local_user_fixture(); -my $avatar_url = "http://somewhere/my-pic.jpg"; +my $avatar_url = "mxc://example.com/SEsfnsuifSDFSSEF"; test "PUT /profile/:user_id/avatar_url sets my avatar", requires => [ $user_fixture ],