Skip to content

Commit

Permalink
Clarify test-case.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 3, 2020
1 parent 3f72aa0 commit be15048
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/50federation/30room-join.pl
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,13 @@ sub assert_is_valid_pdu {
)
};

test "Outbound federation event from other origin",
test "Outbound federation event with an invalid signature should not break",
requires => [ local_user_fixture(), $main::INBOUND_SERVER,
federation_user_id_fixture() ],

do => sub {
my ( $user, $inbound_server, $creator_id ) = @_;

my $versionprefix = "v2";
my $local_server_name = $inbound_server->server_name;
my $datastore = $inbound_server->datastore;

Expand All @@ -988,17 +987,14 @@ sub assert_is_valid_pdu {
},
);

# The event was generated with a valid signature, modify it with an
# invalid signature.
# Modify the event (after the signature was generated) to invalidate the signature.
$event->{origin} = "other-server:12345";

my $await_request_send_join;

$await_request_send_join = $inbound_server->await_request_v2_send_join( $room_id );

Future->needs_all(
# Await PDU?

$inbound_server->await_request_make_join( $room_id, $user->user_id )->then( sub {
my ( $req, $room_id, $user_id ) = @_;

Expand Down

0 comments on commit be15048

Please sign in to comment.