From 054bdc9b789fc20b9df60346feeab2f83695cfdd Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 25 Mar 2023 16:37:17 +0100 Subject: [PATCH] Add proper server names to join in unban tests Otherwise the join will fail for reasons other than the one we test for on Synapse. Required for https://github.com/matrix-org/synapse/pull/15323 Signed-off-by: Nicolas Werner --- tests/30rooms/07ban.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/30rooms/07ban.pl b/tests/30rooms/07ban.pl index d5956b08e..44c2c8678 100644 --- a/tests/30rooms/07ban.pl +++ b/tests/30rooms/07ban.pl @@ -29,7 +29,7 @@ }) } })->then( sub { - matrix_join_room( $banned_user, $room_id ) + matrix_join_room( $banned_user, $room_id, ( server_name => $creator->server_name, ) ) ->main::expect_http_403; # Must be unbanned first })->then( sub { do_request_json_for( $creator, @@ -103,7 +103,7 @@ }; })->then( sub { # Must be unbanned first - matrix_join_room( $banned_user, $room_id )->main::check_http_code( + matrix_join_room( $banned_user, $room_id, ( server_name => $creator->server_name, ) )->main::check_http_code( 403 => "ok", 200 => "redo", );