Skip to content

Commit

Permalink
Merge branch '320_volatile' of https://github.com/UPC/ravada into 320…
Browse files Browse the repository at this point in the history
…_volatile
  • Loading branch information
frankiejol committed Nov 20, 2017
2 parents 6535025 + 244ee56 commit fbb6337
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions t/request/20_download_local.t
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,14 @@ sub search_id_isos {

sub httpd_localhost {
my $ua = Mojo::UserAgent->new;
eval { return $ua->get('http://localhost/iso')->result->is_success };
diag($@) if $@ !~ /Connection refused/;
return;
eval {
my $res = $ua->get('http://localhost/iso')->res;
return 1 if $res->code == 200;
diag($res->message);
return 0;
};
return if !$@;
is($@,qr/Connection refused/);
}

##################################################################
Expand Down

0 comments on commit fbb6337

Please sign in to comment.