Skip to content

Commit

Permalink
Add proper server names to join in unban tests
Browse files Browse the repository at this point in the history
Otherwise the join will fail for reasons other than the one we test for
on Synapse.

Required for matrix-org/synapse#15323

Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
  • Loading branch information
deepbluev7 committed Mar 25, 2023
1 parent cdac5a1 commit 054bdc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/30rooms/07ban.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
);
Expand Down

0 comments on commit 054bdc9

Please sign in to comment.