Skip Menu |

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

Report information
The Basics
Id: 52270
Status: resolved
Priority: 0/
Queue: Test-WWW-Mechanize-Catalyst

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.51
Fixed in: (no value)



Subject: Fixed port for testing server
During multi-content-000type test I observe: 'Starting an external Catalyst HTTP server on port 7357' This server cannot be started because 7357 is already occupied on that system. Could this situation be handled more gracefully? Thanks,
On Mon Nov 30 03:25:37 2009, ANDK wrote: Show quoted text
> During multi-content-000type test I observe: > > 'Starting an external Catalyst HTTP server on port 7357' > > This server cannot be started because 7357 is already occupied on that > system. Could this situation be handled more gracefully? > > Thanks,
You can change the port via the TWMC_TEST_PORT env var.
Having the option to manually tweak a test until it passes does not help in situation where the user is not sitting at the terminal or is not an expert. With "more gracefully" I had in mind a scenario that tries to use a free port and retries several times without user intervention.
On Sat Oct 15 17:50:19 2011, ANDK wrote: Show quoted text
> Having the option to manually tweak a test until it passes does not help > in situation where the user is not sitting at the terminal or is not an > expert. > > With "more gracefully" I had in mind a scenario that tries to use a free > port and retries several times without user intervention.
The test now tries to open the port 5 times and randomly picks an alternate port each time in case it can't open the server on that port.
Excellent, thanks a lot!