Subject: | t/get_ok.t fails |
t/get_ok.t has been failing for the past couple releases for me, but I'm not sure why. Below is a paste of the prove output from that test.
Show quoted text
> prove -b -v t/get_ok.t
t/get_ok....1..11
ok 1 - use Test::WWW::Mechanize;
ok 2 - HTTP Server started
HTTP::Server::Simple: You can connect to your server at http://localhost:13432/
ok 3 - The object isa Test::WWW::Mechanize
ok 4 - sanity check: we can load goodlinks.html
ok 5 - Gets existing URI and reports success
ok 6 - get_ok() should only return a scalar
ok 7 - And the result should be true
not ok 8 - sanity check: we can't load NONEXISTENT.html
# Failed test 'sanity check: we can't load NONEXISTENT.html'
# in t/get_ok.t at line 41.
not ok 9 - Fails to get nonexistent URI and reports failure
# Failed test 'Fails to get nonexistent URI and reports failure'
# in t/get_ok.t at line 48.
# STDOUT is:
# ok 1 - Try to get bad URL
#
# not:
# not ok 1 - Try to get bad URL
#
# as expected
# STDERR is:
#
# not:
# (?-xism:#\s+Failed\ test.*?\n?.*?t\/get_ok\.t at line 47.*\n?)
# # 500
#
# # Can't connect to wango.nonexistent.xx-only-testing:80 (Bad hostname 'wango.nonexistent.xx-only-testing')
#
# as expected
ok 10 - get_ok() should only return a scalar
not ok 11 - And the result should be false
# Failed test 'And the result should be false'
# in t/get_ok.t at line 51.
FAILED tests 8-9, 11
Failed 3/11 tests, 72.73% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/get_ok.t 11 3 27.27% 8-9 11
Failed 1/1 test scripts, 0.00% okay. 3/11 subtests failed, 72.73% okay.