Hijk icon indicating copy to clipboard operation
Hijk copied to clipboard

t/plack-head-request.t fails on some systems

Open eserte opened this issue 1 year ago • 0 comments

I see the following test failure on some of my systems (e.g. debian 12 with recent perl):

t/parse-http-no-content-len-message.t .... ok
2024/10/15-05:42:24 main (type Net::Server::HTTP -> MultiType -> Net::Server::PreFork) starting! pid(1453936)
Resolved [*]:10466 to [::]:10466, IPv6
Not including resolved host [0.0.0.0] IPv4 because it will be handled by [::] IPv6
Binding to TCP port 10466 on host :: with IPv6
2024/10/15-05:42:24 Can't connect to TCP port 10466 on :: [Invalid argument]
  at line 66 in file /opt/perl-5.34.3/lib/site_perl/5.34.3/Net/Server/Proto/TCP.pm
2024/10/15-05:42:24 Server closing!
    # No tests run!

#   Failed test 'No tests run for subtest "expect HEAD response with a Content-Length"'
#   at t/plack-head-request.t line 42.
Connection refused at /home/cpansand/.cpan/build/2024101505/Hijk-0.28-0/blib/lib/Hijk.pm line 289.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 1.
t/plack-head-request.t ................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests 
HTTP::Server::PSGI: Accepting connections at http://0:13750/
    # Connecting to a wrong port: 13750
    # Dying message: Connection refused at /home/cpansand/.cpan/build/2024101505/Hijk-0.28-0/blib/lib/Hijk.pm line 289.
127.0.0.1 - - [15/Oct/2024:05:42:41 +0000] "GET /?t=5 HTTP/1.1" 200 33 "-" "-"
127.0.0.1 - - [15/Oct/2024:05:42:46 +0000] "GET /?t=5 HTTP/1.1" 200 33 "-" "-"
t/plack.t ................................ ok

eserte avatar Oct 19 '24 20:10 eserte