Skip to content

Commit

Permalink
Merge branch 'fix-dns-tests' into release/0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Jan 18, 2024
2 parents 4ffc9ca + 9f12bea commit bdfa5ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/13_client_connect_errors.t
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down
5 changes: 5 additions & 0 deletions t/14_dns_client_errors.t
Original file line number Diff line number Diff line change
Expand Up @@ -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://unresolvable.example.com';

my $p = Paws->new(config => { credentials => 'Test::CustomCredentials' });
Expand Down
5 changes: 5 additions & 0 deletions t/15_timeouts.t
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down

0 comments on commit bdfa5ab

Please sign in to comment.