Skip to content

Commit 54670c6

Browse files
committed
Remove "Can search public room list" test
This test was converted to a Complement test in matrix-org/complement#812
1 parent 14832b8 commit 54670c6

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

tests/30rooms/70publicroomslist.pl

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -259,52 +259,6 @@
259259
})
260260
};
261261

262-
test "Can search public room list",
263-
requires => [ local_user_fixture() ],
264-
265-
check => sub {
266-
my ( $local_user ) = @_;
267-
268-
my $room_id;
269-
270-
matrix_create_room_synced( $local_user,
271-
visibility => "public",
272-
name => "Test Name",
273-
topic => "Test Topic Wombles",
274-
)->then( sub {
275-
( $room_id ) = @_;
276-
277-
retry_until_success {
278-
do_request_json_for( $local_user,
279-
method => "POST",
280-
uri => "/v3/publicRooms",
281-
282-
content => {
283-
filter => {
284-
generic_search_term => "wombles", # Search case insensitively
285-
}
286-
},
287-
)->then( sub {
288-
my ( $body ) = @_;
289-
290-
log_if_fail "Body", $body;
291-
292-
assert_json_keys( $body, qw( chunk ) );
293-
294-
# We only expect to find a single result
295-
assert_eq scalar @{ $body->{chunk} }, 1, "Number of results";
296-
assert_eq $body->{chunk}[0]{room_id}, $room_id, "Room id";
297-
298-
Future->done( 1 );
299-
})->on_fail( sub {
300-
my ( $exc ) = @_;
301-
chomp $exc;
302-
log_if_fail "Failed to search room dir: $exc";
303-
});
304-
}
305-
})
306-
};
307-
308262
test "Asking for a remote rooms list, but supplying the local server's name, returns the local rooms list",
309263
requires => [ local_user_fixture() ],
310264

0 commit comments

Comments
 (0)