From ebdab385c96fe18dcdbbeffd5dcd22b0bb8dc395 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Wed, 4 Dec 2019 11:34:54 +0000 Subject: [PATCH] Ensure all appservice endpoints are prefixed with /_matrix/app/v1 --- lib/SyTest/ApplicationService.pm | 2 +- tests/60app-services/05lookup3pe.pl | 2 +- tests/60app-services/06publicroomlist.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SyTest/ApplicationService.pm b/lib/SyTest/ApplicationService.pm index dc17142c2..9b5e70c65 100644 --- a/lib/SyTest/ApplicationService.pm +++ b/lib/SyTest/ApplicationService.pm @@ -42,7 +42,7 @@ sub new my %futures_by_type; my $f = repeat { - $await_http->( qr{^\Q$path\E/transactions/\d+$}, sub { 1 }, + $await_http->( qr{^\Q$path\E/_matrix/app/v1/transactions/\d+$}, sub { 1 }, timeout => 0, )->then( sub { my ( $request ) = @_; diff --git a/tests/60app-services/05lookup3pe.pl b/tests/60app-services/05lookup3pe.pl index f84b9e55d..044a84c6d 100644 --- a/tests/60app-services/05lookup3pe.pl +++ b/tests/60app-services/05lookup3pe.pl @@ -1,6 +1,6 @@ use List::UtilsBy qw( sort_by ); -use constant AS_PREFIX => "/_matrix/app/unstable"; +use constant AS_PREFIX => "/_matrix/app/v1"; sub stub_empty_result { diff --git a/tests/60app-services/06publicroomlist.pl b/tests/60app-services/06publicroomlist.pl index 29c15f81e..22f7cd9d6 100644 --- a/tests/60app-services/06publicroomlist.pl +++ b/tests/60app-services/06publicroomlist.pl @@ -1,4 +1,4 @@ -use constant AS_PREFIX => "/_matrix/app/unstable"; +use constant AS_PREFIX => "/_matrix/app/v1"; sub get_room_list_synced