Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 117893
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: olaf [...] wundersolutions.com
Requestors: jpierce [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.78
Fixed in: (no value)



Subject: t/local/back.t hang indefinitely on Win10x64
Running make test "C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/live/*.t t/local/*.t t/mech-dump/*.t t/00-load.t .............. 1/2 # Testing WWW::Mechanize 1.78, with LWP 6.15, Perl 5.024000, C:\Strawberry\perl\bin\perl.exe # Test::Memory::Cycle is not installed. t/00-load.t .............. ok t/add_header.t ........... ok t/aliases.t .............. ok t/area_link.t ............ ok t/author-pod-coverage.t .. skipped: these tests are for testing by the author t/autocheck.t ............ ok t/bad-request.t .......... ok t/clone.t ................ ok t/content.t .............. ok t/cookies.t .............. skipped: HTTP::Server::Simple does not support Windows yet. t/credentials-api.t ...... ok t/credentials.t .......... ok t/die.t .................. ok t/dump.t ................. ok t/field.t ................ ok t/find_frame.t ........... ok t/find_image.t ........... ok t/find_inputs.t .......... ok t/find_link-warnings.t ... ok t/find_link.t ............ ok t/find_link_id.t ......... ok t/form-parsing.t ......... ok t/form_with_fields.t ..... 1/? There are 2 forms with the named fields. The first one was used. at t/form_with_fields.t line 27. t/form_with_fields.t ..... ok t/frames.t ............... ok t/image-new.t ............ ok t/image-parse.t .......... ok t/link-base.t ............ ok t/link-relative.t ........ ok t/link.t ................. ok t/live/encoding.t ........ ok t/live/wikipedia.t ....... ok t/local/back.t ........... 1/47 Error GETing http://localhost:52248/: Can't connect to localhost:52248 at t/local/back.t line 53.
On Fri Sep 16 14:47:42 2016, JPIERCE wrote: Show quoted text
> Running make test > "C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib\lib', 'blib\arch')" t/*.t t/live/*.t t/local/*.t t/mech-dump/*.t > t/00-load.t .............. 1/2 # Testing WWW::Mechanize 1.78, with LWP > 6.15, Perl 5.024000, C:\Strawberry\perl\bin\perl.exe > # Test::Memory::Cycle is not installed. > t/00-load.t .............. ok > t/add_header.t ........... ok > t/aliases.t .............. ok > t/area_link.t ............ ok > t/author-pod-coverage.t .. skipped: these tests are for testing by the > author > t/autocheck.t ............ ok > t/bad-request.t .......... ok > t/clone.t ................ ok > t/content.t .............. ok > t/cookies.t .............. skipped: HTTP::Server::Simple does not > support Windows yet. > t/credentials-api.t ...... ok > t/credentials.t .......... ok > t/die.t .................. ok > t/dump.t ................. ok > t/field.t ................ ok > t/find_frame.t ........... ok > t/find_image.t ........... ok > t/find_inputs.t .......... ok > t/find_link-warnings.t ... ok > t/find_link.t ............ ok > t/find_link_id.t ......... ok > t/form-parsing.t ......... ok > t/form_with_fields.t ..... 1/? There are 2 forms with the named > fields. The first one was used. at t/form_with_fields.t line 27. > t/form_with_fields.t ..... ok > t/frames.t ............... ok > t/image-new.t ............ ok > t/image-parse.t .......... ok > t/link-base.t ............ ok > t/link-relative.t ........ ok > t/link.t ................. ok > t/live/encoding.t ........ ok > t/live/wikipedia.t ....... ok > t/local/back.t ........... 1/47 Error GETing http://localhost:52248/: > Can't connect to localhost:52248 at t/local/back.t line 53.
Thanks very much for this. Are you seeing this happen consistently or is it just occasional? Olaf
Subject: Re: [rt.cpan.org #117893] t/local/back.t hang indefinitely on Win10x64
Date: Fri, 16 Sep 2016 17:50:19 -0400
To: bug-WWW-Mechanize [...] rt.cpan.org
From: Jerrad Pierce <belg4mit [...] pthbb.org>
Consistently, althouh I believe it's using a random port?
On Fri Sep 16 17:50:30 2016, belg4mit@pthbb.org wrote: Show quoted text
> Consistently, althouh I believe it's using a random port?
Can you tell which test it's hanging on? Locally it sometimes seems to hang for me after "Pre-search check".
On Fri Sep 16 23:53:41 2016, OALDERS wrote: Show quoted text
> On Fri Sep 16 17:50:30 2016, belg4mit@pthbb.org wrote:
> > Consistently, although I believe it's using a random port?
> > Can you tell which test it's hanging on? Locally it sometimes seems > to hang for me after "Pre-search check".
Hmm, today it is hanging on #5 (or maybe it was before and buffering w/o TEST_VERBOSE masked that). t/local/back.t ........... 1..47 ok 1 - use WWW::Mechanize; ok 2 - An object of class 'WWW::Mechanize' isa 'WWW::Mechanize' ok 3 - 'this $mech starts with a cookie jar' isa 'HTTP::Cookies' ok 4 - An object of class 'LocalServer' isa 'LocalServer' ok 5 - With no stack, no going back Error GETing http://localhost:63242/: Can't connect to localhost:63242 at t/local/back.t line 53.
On Mon Sep 19 14:05:14 2016, JPIERCE wrote: Show quoted text
> On Fri Sep 16 23:53:41 2016, OALDERS wrote:
> > On Fri Sep 16 17:50:30 2016, belg4mit@pthbb.org wrote:
> > > Consistently, although I believe it's using a random port?
> > > > Can you tell which test it's hanging on? Locally it sometimes seems > > to hang for me after "Pre-search check".
> > > Hmm, today it is hanging on #5 (or maybe it was before and buffering > w/o TEST_VERBOSE masked that). > > t/local/back.t ........... > 1..47 > ok 1 - use WWW::Mechanize; > ok 2 - An object of class 'WWW::Mechanize' isa 'WWW::Mechanize' > ok 3 - 'this $mech starts with a cookie jar' isa 'HTTP::Cookies' > ok 4 - An object of class 'LocalServer' isa 'LocalServer' > ok 5 - With no stack, no going back > Error GETing http://localhost:63242/: Can't connect to localhost:63242 > at t/local/back.t line 53.
These tests that rely on finding open ports seem to be kind of brittle. I haven't looked too closely, but probably these tests should be rewritten to either navigate files on the filesystem use file:/// or use an in process server like Plack. We could skip these tests where Plack isn't already installed.