sergot / http-useragent

Web user agent class for Perl 6.
MIT License
36 stars 39 forks source link

260-no-proxy.t test failures caused by environment variables #165

Closed CIAvash closed 7 years ago

CIAvash commented 7 years ago

The 260-no-proxy.t test file sets this environment variable:

%*ENV<NO_PROXY> = 'localhost, foo.bar.com , baz.quux.com';

The tests expect $ua.no-proxy to return those values, but if no_proxy environment variable is set in your shell, the values will differ and the tests will fail. From UserAgent.pm6:

if (%*ENV<no_proxy> || %*ENV<NO_PROXY> ) -> $no-proxy {

The same is true for HTTP_PROXY and http_proxy.

jonathanstowe commented 7 years ago

Good catch. Will delete the unwanted environment.