system-test: increase timeout for keepalive tests from 1s to 2s

The keepalive tests were occasionally bumping up against
the 1s timeout we had set for curl, but a 1s 99.9% tail
latency is a little agressive.  Drop it to 2s to make the
tests less flaky.

What we really need is a proper load testing setup, so
the keepalive test isn't doing double-duty.
This commit is contained in:
Jeff Kaufman
2013-11-07 17:36:56 -05:00
parent 4e3fe6f35f
commit 26aaf221c7
+2 -2
View File
@@ -69,11 +69,11 @@ function keepalive_test() {
for ((i=0; i < 100; i++)); do
for accept_encoding in "" "gzip"; do
if [ -z "$POST_DATA" ]; then
curl -m 1 -S -s -v -H "Accept-Encoding: $accept_encoding" \
curl -m 2 -S -s -v -H "Accept-Encoding: $accept_encoding" \
-H "Host: $HOST_NAME" $URL $URL $URL $URL $URL > /dev/null \
2>>"$TEST_TMP/$CURL_LOG_FILE"
else
curl -X POST --data "$POST_DATA" -m 1 -S -s -v \
curl -X POST --data "$POST_DATA" -m 2 -S -s -v \
-H "Accept-Encoding: $accept_encoding" -H "Host: $HOST_NAME"\
$URL $URL $URL $URL $URL > /dev/null \
2>>"$TEST_TMP/$CURL_LOG_FILE"