Subject: | Tests fail if port 8080 is taken |
On some of my smokers I see the following test 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, 'inc', 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'created test server'
# at t/001-basic.t line 7.
# 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 in concatenation (.) or string at t/001-basic.t line 8, <DATA> line 16.
# Failed test 'got a url: '
# at t/001-basic.t line 8.
Use of uninitialized value $url in concatenation (.) or string at t/001-basic.t line 11, <DATA> line 16.
Error GETing /no_warnings: URL must be absolute at t/001-basic.t line 11.
t/001-basic.t ..
Failed 8/8 subtests
...
Probably the test should not hardcode port 8080, but make sure that a free port is used.