Subject: | Test failures behind a firewall |
Date: | Sun, 30 Jan 2011 20:34:04 -0800 |
To: | bug-Test-Override-UserAgent [...] rt.cpan.org |
From: | Father Chrysostomos <sprout [...] cpan.org> |
When I run the tests for this module, t/live_restriction.t fails:
DOUGDUDE/Test-Override-UserAgent-0.002.tar.gz
/usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Prepending blib/arch and blib/lib of 21 build dirs to PERL5LIB; for 'test'
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ............. 1/1 # Perl 5.010001, /usr/bin/perl
# Test::Override::UserAgent 0.002
t/00-load.t ............. ok
t/bad_handlers.t ........ ok
t/constructor.t ......... ok
t/from_configuration.t .. ok
t/handle_request.t ...... ok
t/live_restriction.t .... 4/7 # Looks like you planned 7 tests but ran 4.
t/live_restriction.t .... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/7 subtests
(less 1 skipped subtest: 3 okay)
t/psgi.t ................ ok
t/psgi_validate.t ....... ok
t/scope.t ............... ok
t/simple.t .............. ok
t/user_agent.t .......... ok
Could you perhaps make the test work behind a firewall that blocks most HTTP traffic, or skip the test in such cases? (See also LWP::Online, which may come in handy.)