Subject: | Fwd: Test::WWW::Mechanize/WWW::Mechanize Issue |
Date: | Wed, 18 Apr 2007 20:37:53 -0400 |
To: | bug-WWW-Mechanize [...] rt.cpan.org |
From: | hkclark [...] gmail.com |
I noticed that I'm having trouble when 'make test' run for
Test::WWW::Mechanize if anything after v1.20 of WWW::Mechanize is
installed (I have tried v1.21_01, v1.21_02, v1.21_03, v1.21_04, and
v1.22 and all have had issues). I'm doing this on a freshly installed
CentOS 4 box (RHEL 4)... so Perl v5.8.5.
I'm not sure yet where the ultimate "root cause" lies, but it seems to
involve the following line in v1.21+ of WWW::Mechanize:
my $content = $res->decoded_content;
If I change that back to what v1.20 had:
my $content = $res->content;
Then everything is good.
Here is the error message I'm getting with v1.21+
of WWW::Mechanize:
[root@localhost Test-WWW-Mechanize-1.12]# prove t/follow_link_ok.t
t/follow_link_ok....NOK 4
# Failed test 'Go after first link'
# at t/follow_link_ok.t line 29.
# 500 Can't connect to localhost:13432 (connect: Connection refused)
# Content-Type: text/plain
# Client-Date: Sat, 14 Apr 2007 12:37:24 GMT
# Client-Warning: Internal response
#
# 500 Can't connect to localhost:13432 (connect: Connection refused)
t/follow_link_ok....FAILED test 4
Failed 1/6 tests, 83.33% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/follow_link_ok.t 6 1 16.67% 4
Failed 1/1 test scripts, 0.00% okay. 1/6 subtests failed, 83.33% okay.
[root@localhost Test-WWW-Mechanize-1.12]#
Here is the output if comment out lines 1949 and 1950 and insert 'my
$content = $res->content;':
[root@localhost Test-WWW-Mechanize-1.12]# prove t/follow_link_ok.t
t/follow_link_ok....ok
All tests successful.
Files=1, Tests=6, 0 wallclock secs ( 0.06 cusr + 0.26 csys = 0.32 CPU)
[root@localhost Test-WWW-Mechanize-1.12]#
Thank you,
Kennedy