#!/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" nr_client=30 nr_actor=10 cat > $unicorn_config <> $curl_out 2>> $curl_err ) & done wait echo elapsed=$(( $(date +%s) - $start )) kill $(cat $pid) ! test -s $curl_err test x"$(wc -l < $curl_out)" = x$nr_client nr=$(sort < $curl_out | uniq | wc -l) test "$nr" -eq 1