event_machine: factor out async.callback handling
[rainbows.git] / t / t0114-rewindable-input-true.sh
blob7e337ea019f4d87ce993de3e66cff0abad8674b5
1 #!/bin/sh
2 . ./test-lib.sh
3 skip_models EventMachine NeverBlock
4 skip_models Rev RevThreadSpawn RevThreadPool
5 skip_models Coolio CoolioThreadSpawn CoolioThreadPool
7 t_plan 4 "rewindable_input toggled to true"
9 t_begin "setup and start" && {
10 rainbows_setup
11 echo rewindable_input true >> $unicorn_config
12 rainbows -D -c $unicorn_config t0114.ru
13 rainbows_wait_start
16 t_begin "ensure worker is started" && {
17 test xOK = x$(curl -T t0114.ru -sSf http://$listen/)
20 t_begin "killing succeeds" && {
21 kill $rainbows_pid
24 t_begin "check stderr" && {
25 check_stderr
28 t_done