Sha256: 30af0bf7af84071783486a16ae66d097882073b8012fb09f4ff876ccd8e7fc52

Contents?: true

Size: 976 Bytes

Versions: 24

Compression:

Stored size: 976 Bytes

Contents

#!/bin/sh
. ./test-lib.sh

case $model in
NeverBlock|CoolioThreadPool|XEpollThreadPool) ;;
*)
	t_info "skipping $model.$T since it doesn't support :pool_size"
	exit
	;;
esac

t_plan 6 "optional :pool_size argument for $model"

t_begin "setup and startup" && {
	rtmpfiles curl_out curl_err
	rainbows_setup $model
}

t_begin "fails with bad :pool_size" && {
	ed -s $unicorn_config <<EOF
,s/use :$model/use :$model, :pool_size => -666/
w
EOF
	grep "pool_size" $unicorn_config
	rainbows -D env.ru -c $unicorn_config || echo err=$? > $ok
	test x"$(cat $ok)" = "xerr=1"
}

t_begin "starts with correct :pool_size" && {
	ed -s $unicorn_config <<EOF
,s/use :$model.*/use :$model, :pool_size => 6/
w
EOF
	grep "pool_size" $unicorn_config
	rainbows -D env.ru -c $unicorn_config
	rainbows_wait_start
}

t_begin "regular TCP request works right" && {
	curl -sSfv http://$listen/
}

t_begin "no errors in stderr" && {
	check_stderr
}

t_begin "shutdown" && {
	kill $rainbows_pid
}

t_done

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rainbows-5.2.1 t/t0041-optional-pool-size.sh
rainbows-5.2.0 t/t0041-optional-pool-size.sh
rainbows-5.1.1 t/t0041-optional-pool-size.sh
rainbows-5.1.0 t/t0041-optional-pool-size.sh
rainbows-5.0.0.5.ge717 t/t0041-optional-pool-size.sh
rainbows-5.0.0 t/t0041-optional-pool-size.sh
rainbows-4.7.0 t/t0041-optional-pool-size.sh
rainbows-4.6.2 t/t0041-optional-pool-size.sh
rainbows-4.6.1 t/t0041-optional-pool-size.sh
rainbows-4.6.0.4.g4108 t/t0041-optional-pool-size.sh
rainbows-4.6.0 t/t0041-optional-pool-size.sh
rainbows-4.5.0 t/t0041-optional-pool-size.sh
rainbows-4.4.3 t/t0041-optional-pool-size.sh
rainbows-4.4.2 t/t0041-optional-pool-size.sh
rainbows-4.4.1.1.gd5c8c t/t0041-optional-pool-size.sh
rainbows-4.4.1 t/t0041-optional-pool-size.sh
rainbows-4.4.0 t/t0041-optional-pool-size.sh
rainbows-4.3.1 t/t0041-optional-pool-size.sh
rainbows-4.3.0 t/t0041-optional-pool-size.sh
rainbows-4.2.0 t/t0041-optional-pool-size.sh