Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions tests/30rooms/70publicroomslist.pl
Original file line number Diff line number Diff line change
Expand Up @@ -259,52 +259,6 @@
})
};

test "Can search public room list",
requires => [ local_user_fixture() ],

check => sub {
my ( $local_user ) = @_;

my $room_id;

matrix_create_room_synced( $local_user,
visibility => "public",
name => "Test Name",
topic => "Test Topic Wombles",
)->then( sub {
( $room_id ) = @_;

retry_until_success {
do_request_json_for( $local_user,
method => "POST",
uri => "/v3/publicRooms",

content => {
filter => {
generic_search_term => "wombles", # Search case insensitively
}
},
)->then( sub {
my ( $body ) = @_;

log_if_fail "Body", $body;

assert_json_keys( $body, qw( chunk ) );

# We only expect to find a single result
assert_eq scalar @{ $body->{chunk} }, 1, "Number of results";
assert_eq $body->{chunk}[0]{room_id}, $room_id, "Room id";

Future->done( 1 );
})->on_fail( sub {
my ( $exc ) = @_;
chomp $exc;
log_if_fail "Failed to search room dir: $exc";
});
}
})
};

test "Asking for a remote rooms list, but supplying the local server's name, returns the local rooms list",
requires => [ local_user_fixture() ],

Expand Down