Skip Menu |

This queue is for tickets about the Template-Provider-HTTP CPAN distribution.

Report information
The Basics
Id: 120387
Status: new
Priority: 0/
Queue: Template-Provider-HTTP

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

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



Subject: Tests fail if port 8080 is taken
Some of my smokers show the following failure: ... PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.10/bin/perl5.25.10" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Failed test 'starting a test server' # at t/simple.t line 15. # HTTP::Server::Simple->background failed: bind to *:8080: Address already in use at /opt/perl-5.25.10/lib/5.25.10/NEXT.pm line 95. Use of uninitialized value $url_root in concatenation (.) or string at t/simple.t line 16, <DATA> line 16. # Failed test 'url_root is ''' # at t/simple.t line 16. Use of uninitialized value $url_root in concatenation (.) or string at t/simple.t line 19, <DATA> line 16. Use of uninitialized value $url_root in concatenation (.) or string at t/simple.t line 19, <DATA> line 16. # Failed test 'process in_http_a' # at t/simple.t line 49. # Failed test 'output is correct' # at t/simple.t line 50. # got: '' # expected: 'in_http_a # ' # Failed test 'got an unexpected error: file error - in_http_a: not found' # at t/simple.t line 52. # Failed test 'process in_http_b' # at t/simple.t line 49. # Failed test 'output is correct' # at t/simple.t line 50. # got: '' # expected: 'in_http_b # ' # Failed test 'got an unexpected error: file error - in_http_b: not found' # at t/simple.t line 52. t/simple.t .. Failed 8/16 subtests ... This probably happens if port 8080 is taken by another webserver. Probably it's best to make sure that a free port is used for the tests.