t/t3000-revactor-basic.sh in rainbows-0.1.1 vs t/t3000-revactor-basic.sh in rainbows-0.2.0
- old
+ new
@@ -1,23 +1,20 @@
#!/bin/sh
. ./test-lib.sh
require_revactor
eval $(unused_listen)
-unicorn_config=$(mktemp -t rainbows.$$.unicorn.rb.XXXXXXXX)
-curl_out=$(mktemp -t rainbows.$$.curl.out.XXXXXXXX)
-curl_err=$(mktemp -t rainbows.$$.curl.err.XXXXXXXX)
-pid=$(mktemp -t rainbows.$$.pid.XXXXXXXX)
-TEST_RM_LIST="$TEST_RM_LIST $pid $unicorn_config $lock_path"
-TEST_RM_LIST="$TEST_RM_LIST $curl_out $curl_err"
+rtmpfiles unicorn_config curl_out curl_err pid r_err r_out
nr_client=30
nr_actor=10
cat > $unicorn_config <<EOF
listen "$listen"
pid "$pid"
+stderr_path "$r_err"
+stdout_path "$r_out"
Rainbows! do
use :Revactor
worker_connections $nr_actor
end
EOF
@@ -38,5 +35,6 @@
! test -s $curl_err
test x"$(wc -l < $curl_out)" = x$nr_client
nr=$(sort < $curl_out | uniq | wc -l)
test "$nr" -eq 1
+! grep Error $r_err