summaryrefslogtreecommitdiff
path: root/tests/mod-fastcgi.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-01-10 19:18:36 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2017-01-10 19:18:36 -0500
commit83b2b71527e681fce4b8ebc8c9d12d8cc8122b0c (patch)
tree739e38a36bb437097e584c23821e26805925b5e2 /tests/mod-fastcgi.t
parent16f171588f0d394b0a194155ee906eba159ebb2b (diff)
downloadlighttpd-git-83b2b71527e681fce4b8ebc8c9d12d8cc8122b0c.tar.gz
[tests] give time for periodic jobs to detect exit
give time for periodic jobs to detect backend exit
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-xtests/mod-fastcgi.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t
index 763002b5..582e04fb 100755
--- a/tests/mod-fastcgi.t
+++ b/tests/mod-fastcgi.t
@@ -409,6 +409,8 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test123' } ];
ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart');
+ # (might take lighttpd 1 sec to detect backend exit)
+ select(undef, undef, undef, .9);
select(undef, undef, undef, .1) while (!$tf->listening_on(10000));
$t->{REQUEST} = ( <<EOF
GET /index.fcgi?crlf HTTP/1.0