diff proxy_cache_chunked.t @ 295:6fe0459b6668

Tests: eliminate startup races in proxy and fastcgi tests.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 08 Jun 2013 07:02:11 +0400
parents 1c356f231c8f
children 071e8941e3bf
line wrap: on
line diff
--- a/proxy_cache_chunked.t
+++ b/proxy_cache_chunked.t
@@ -59,7 +59,7 @@ http {
 EOF
 
 $t->run_daemon(\&http_chunked_daemon);
-$t->run();
+$t->run()->waitforsocket('127.0.0.1:8081');
 
 ###############################################################################
 
@@ -77,6 +77,8 @@ sub http_chunked_daemon {
 	)
 		or die "Can't create listening socket: $!\n";
 
+	local $SIG{PIPE} = 'IGNORE';
+
 	while (my $client = $server->accept()) {
 		$client->autoflush(1);