diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-03-18 22:35:31 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-03-19 23:48:50 -0400 |
commit | aa14493e4788f602d86defb3fa6509d41f01664b (patch) | |
tree | bb3d24fb1c3c681a2a60c8ed7a5453a63a3e8eec /tests/mod-scgi.t | |
parent | 1804ccbd6da9a16600f226526e7bd61f5b01596f (diff) | |
download | lighttpd-git-aa14493e4788f602d86defb3fa6509d41f01664b.tar.gz |
[tests] reduce time waiting for backends to start
reduce time spent waiting for backends to start
tests check for active listening port before proceeding
test runs now complete in about 2/3 the time
Diffstat (limited to 'tests/mod-scgi.t')
-rwxr-xr-x | tests/mod-scgi.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/mod-scgi.t b/tests/mod-scgi.t index 20b11482..12c11a80 100755 --- a/tests/mod-scgi.t +++ b/tests/mod-scgi.t @@ -76,8 +76,10 @@ EOF ok($tf->handle_http($t) == 0, 'killing scgi 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)); + select(undef, undef, undef, .5); + for (my $c = 2*20; $c && 0 == $tf->listening_on(10000); --$c) { + select(undef, undef, undef, 0.05); + } $t->{REQUEST} = ( <<EOF GET /index.scgi?crlf HTTP/1.0 Host: www.example.org |