diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-01-10 19:18:36 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-01-10 19:18:36 -0500 |
commit | 83b2b71527e681fce4b8ebc8c9d12d8cc8122b0c (patch) | |
tree | 739e38a36bb437097e584c23821e26805925b5e2 /tests/mod-fastcgi.t | |
parent | 16f171588f0d394b0a194155ee906eba159ebb2b (diff) | |
download | lighttpd-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-x | tests/mod-fastcgi.t | 2 |
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 |