Skip to content

Commit

Permalink
fetch test: don't cancel if retrieve returns undef (test still fails …
Browse files Browse the repository at this point in the history
…e.g. when offline, but other tests now run)
  • Loading branch information
stdweird committed Nov 29, 2015
1 parent 398e96b commit d8cd85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/perl/fetch.t
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ use LWP::Protocol::https;
note("Testing profile retrieval");
my $pf = $f->retrieve($f->{PROFILE_URL}, "target/test/http-output", 0);
ok($pf, "Something got returned");
$pf->cancel();
$pf->cancel() if defined($pf);

my $specialchars = "http://securedserver?parameter1=foo&parameter=foo%20bar";
$f->setProfileURL($specialchars);
Expand Down

0 comments on commit d8cd85e

Please sign in to comment.