Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Aug 8, 2023
1 parent 79d93f3 commit c0e7b46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/51media/01unicode.pl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sub upload_test_content
{
my ( $user, %params, $content_type) = @_;

$content_type ||= "application/octet-stream"
$content_type ||= "application/octet-stream";

$user->http->do_request(
method => "POST",
Expand Down
4 changes: 2 additions & 2 deletions tests/51media/04inline.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# in the browser. This is checked in get_media

test "Can download a file that optionally inlines",
requires => [ $main::API_CLIENTS[0] ],
requires => [ $main::API_CLIENTS[0], local_user_fixture() ],

check => sub {
my ( $http ) = @_;
my ( $http, $user ) = @_;
upload_test_content( $user, {} , "text/plain")->then( sub {
( $content_id ) = @_;
get_media( $http, $content_id, 1 )->then( sub {
Expand Down

0 comments on commit c0e7b46

Please sign in to comment.