Subject: | Tests should not bind to 0.0.0.0 |
Tests should not bind to 0.0.0.0
Patch attached.
Subject: | HTTP-Server-Simple-0.41-localhost.patch |
diff -ur HTTP-Server-Simple-0.41/t/01live.t HTTP-Server-Simple-0.41-localhost/t/01live.t
--- HTTP-Server-Simple-0.41/t/01live.t 2009-08-12 19:13:55.000000000 +0300
+++ HTTP-Server-Simple-0.41-localhost/t/01live.t 2012-10-06 21:28:19.706591345 +0300
@@ -109,6 +109,7 @@
sub run_server_tests {
my $class = shift;
my $s = $class->new($PORT);
+ $s->host("localhost");
is($s->port(),$PORT,"Constructor set port correctly");
my $pid=$s->background();
diff -ur HTTP-Server-Simple-0.41/t/04cgi.t HTTP-Server-Simple-0.41-localhost/t/04cgi.t
--- HTTP-Server-Simple-0.41/t/04cgi.t 2009-08-12 18:48:56.000000000 +0300
+++ HTTP-Server-Simple-0.41-localhost/t/04cgi.t 2012-10-06 21:28:51.966590653 +0300
@@ -32,6 +32,7 @@
{
my $server=CGIServer->new($PORT);
is($server->port(),$PORT,'Constructor set port correctly');
+ $server->host("localhost");
sleep(3); # wait just a moment
my $pid=$server->background;