diff proxy_keepalive.t @ 273:36c75df75ca4

Tests: fix startup race in fastcgi_keepalive.t, proxy_keepalive.t.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 21 Mar 2013 21:02:15 +0400
parents 957fe2a76aa7
children 6cbcfb4ef7ee
line wrap: on
line diff
--- a/proxy_keepalive.t
+++ b/proxy_keepalive.t
@@ -75,6 +75,9 @@ EOF
 $t->run_daemon(\&http_daemon);
 $t->run();
 
+$t->waitforsocket('127.0.0.1:8081')
+	or die "Can't start test backend";
+
 ###############################################################################
 
 # There are 3 mostly independend modes of upstream operation: