diff --git a/test.sh b/test.sh index 31fcbeb0..4bba3cda 100644 --- a/test.sh +++ b/test.sh @@ -2,13 +2,14 @@ ./dbench start > /tmp/bench.log & -output=$( - while ! curl "http://localhost:8000" - do - { echo "Exit status of curl: $?" - } 1>&2 - sleep 1 - done -) +while ! [[ $i == 20 ]] +do + output=$( curl "http://localhost:8000" ) + { echo "Exit status of curl: $?" + } 1>&2 + sleep 2 + i=$((i + 1)) +done + echo "${output}" | grep ' Login ' || exit 1 \ No newline at end of file