t/httpd-unix.t | 3 ++- diff --git a/t/httpd-unix.t b/t/httpd-unix.t index 758277c9d67977304663346fed62b3e1d5e984de..04f4b8fa9807e239f2224b3f31308bdc7e563127 100644 --- a/t/httpd-unix.t +++ b/t/httpd-unix.t @@ -42,8 +42,9 @@ } ok(!-S $unix, 'UNIX socket does not exist, yet'); $spawn_httpd->("-l$unix"); +my %o = (Peer => $unix, Type => SOCK_STREAM); for (1..1000) { - last if -S $unix; + last if -S $unix && IO::Socket::UNIX->new(%o); select undef, undef, undef, 0.02 }