diff --git a/tests/48admin.pl b/tests/48admin.pl index 749788bcb..1cd51da0c 100644 --- a/tests/48admin.pl +++ b/tests/48admin.pl @@ -381,8 +381,8 @@ sub await_purge_complete { matrix_join_room( $remote_user, $room_id ); })->then( sub { do_request_json_for( $admin, - method => "POST", - full_uri => "/_synapse/admin/v1/rooms/$room_id/delete", + method => "DELETE", + full_uri => "/_synapse/admin/v1/rooms/$room_id", content => { new_room_user_id => $dummy_user->user_id, block => JSON::true,