Skip to content

Commit

Permalink
set no_proxy for LWPish. HTTP::Tiny automatically uses $ENV{http_proxy}
Browse files Browse the repository at this point in the history
  • Loading branch information
kazeburo committed Aug 15, 2013
1 parent 5a1bd60 commit bb5f9ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ requires 'Try::Tiny';
requires 'URI', '1.59';
requires 'parent';
requires 'Apache::LogFormat::Compiler', '0.12';
requires 'HTTP::Tiny', 0.024;
requires 'HTTP::Tiny', 0.034;

on test => sub {
requires 'Test::More', '0.88';
Expand Down
2 changes: 1 addition & 1 deletion lib/Plack/Test/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sub test_psgi {

my $client = delete $args{client} or croak "client test code needed";
my $app = delete $args{app} or croak "app needed";
my $ua = delete $args{ua} || Plack::LWPish->new;
my $ua = delete $args{ua} || Plack::LWPish->new( no_proxy => [qw/127.0.0.1/] );

test_tcp(
client => sub {
Expand Down
3 changes: 1 addition & 2 deletions lib/Plack/Test/Suite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,7 @@ sub run_server_tests {
test_tcp(
client => sub {
my $port = shift;

my $ua = Plack::LWPish->new;
my $ua = Plack::LWPish->new( no_proxy => [qw/127.0.0.1/] );
for my $i (0..$#TEST) {
my $test = $TEST[$i];
note $test->[0];
Expand Down

0 comments on commit bb5f9ca

Please sign in to comment.