5 NeverBlock|CoolioThreadPool|XEpollThreadPool
) ;;
7 t_info
"skipping $model.$T since it doesn't support :pool_size"
12 t_plan
6 "optional :pool_size argument for $model"
14 t_begin
"setup and startup" && {
15 rtmpfiles curl_out curl_err
19 t_begin
"fails with bad :pool_size" && {
20 ed
-s $unicorn_config <<EOF
21 ,s/use :$model/use :$model, :pool_size => -666/
24 grep "pool_size" $unicorn_config
25 rainbows
-D env.ru
-c $unicorn_config ||
echo err
=$?
> $ok
26 test x
"$(cat $ok)" = "xerr=1"
29 t_begin
"starts with correct :pool_size" && {
30 ed
-s $unicorn_config <<EOF
31 ,s/use :$model.*/use :$model, :pool_size => 6/
34 grep "pool_size" $unicorn_config
35 rainbows
-D env.ru
-c $unicorn_config
39 t_begin
"regular TCP request works right" && {
40 curl
-sSfv http
://$listen/
43 t_begin
"no errors in stderr" && {
47 t_begin
"shutdown" && {