6 t_info
"skipping $T since it's not compatible with $model"
10 require_check cramp Cramp
::VERSION
12 t_plan
4 "WebSocket monkey patch validity test for Cramp"
14 CONFIG_RU
=cramp
/rainsocket.ru
16 t_begin
"setup and start" && {
20 # Like the rest of the EM/async stuff, it's not Rack::Lint compatible
21 rainbows
-E deployment
-D $CONFIG_RU -c $unicorn_config
25 t_begin
"wait for server to say hello to us" && {
26 ok
=$
((curl
--no-buffer -sS http
://$listen/ ||
:) | \
27 (tr -d '\0\0377' ||
:) | \
28 awk '/Hello from the Server/ { print "ok"; exit 0 }')
33 t_begin
"termination signal sent" && {
37 t_begin
"no errors in stderr" && check_stderr