diff --git a/t/13_client_connect_errors.t b/t/13_client_connect_errors.t index 3fe568b1cb..13320e51b0 100644 --- a/t/13_client_connect_errors.t +++ b/t/13_client_connect_errors.t @@ -12,6 +12,11 @@ use Test::CustomCredentials; my $match_message_tests = $ENV{CI}; +# proxies can interfere with this test, because the connection will +# succeed (to the proxy), the proxy may return some error page, so +# we're getting InvalidContent instead of ConnectionError +delete local @ENV{qw(http_proxy https_proxy HTTP_PROXY HTTPS_PROXY)}; + my $closed_server_endpoint = 'http://localhost:65511'; my $p = Paws->new(config => { credentials => 'Test::CustomCredentials' }); diff --git a/t/15_timeouts.t b/t/15_timeouts.t index e346a7a675..9576f90a19 100644 --- a/t/15_timeouts.t +++ b/t/15_timeouts.t @@ -22,6 +22,11 @@ my $sock = IO::Socket::INET->new(Listen => 5, LocalPort => 9000, Proto => 'tcp'); +# proxies can interfere with this test, because the connection will +# succeed (to the proxy), the proxy may return some error page, so +# we're getting InvalidContent instead of ConnectionError +delete local @ENV{qw(http_proxy https_proxy HTTP_PROXY HTTPS_PROXY)}; + my $closed_server_endpoint = 'http://localhost:9000'; my $p = Paws->new(config => { credentials => 'Test::CustomCredentials' });