Skip to content

Commit 054bdc9

Browse files
committed
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 matrix-org/synapse#15323 Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
1 parent cdac5a1 commit 054bdc9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/30rooms/07ban.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
})
3030
}
3131
})->then( sub {
32-
matrix_join_room( $banned_user, $room_id )
32+
matrix_join_room( $banned_user, $room_id, ( server_name => $creator->server_name, ) )
3333
->main::expect_http_403; # Must be unbanned first
3434
})->then( sub {
3535
do_request_json_for( $creator,
@@ -103,7 +103,7 @@
103103
};
104104
})->then( sub {
105105
# Must be unbanned first
106-
matrix_join_room( $banned_user, $room_id )->main::check_http_code(
106+
matrix_join_room( $banned_user, $room_id, ( server_name => $creator->server_name, ) )->main::check_http_code(
107107
403 => "ok",
108108
200 => "redo",
109109
);

0 commit comments

Comments
 (0)