about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-19 02:58:43 +0000
committerEric Wong <normalperson@yhbt.net>2011-01-19 02:58:43 +0000
commit7a04133c1ab57923cac8a9de04b00bfe89bcce2d (patch)
tree3f57d799e7779340aff863537694ecb8d8cdc55a /t
parent810701d939114a5fcdacc55ec383de112c5e3fa4 (diff)
downloadrainbows-7a04133c1ab57923cac8a9de04b00bfe89bcce2d.tar.gz
This makes content-md5 tests much faster since we
no longer wait for the server to to timeout.
Diffstat (limited to 't')
-rwxr-xr-xt/bin/content-md5-put1
-rwxr-xr-xt/t0106-rack-input-keepalive.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/t/bin/content-md5-put b/t/bin/content-md5-put
index 01da0bb..01d96dd 100755
--- a/t/bin/content-md5-put
+++ b/t/bin/content-md5-put
@@ -15,6 +15,7 @@ if ARGV.grep("--no-headers").empty?
   $stdout.write(
       "PUT / HTTP/1.1\r\n" \
       "Host: example.com\r\n" \
+      "Connection: #{ENV["Connection"] || 'close'}\r\n" \
       "Transfer-Encoding: chunked\r\n" \
       "Trailer: Content-MD5\r\n" \
       "\r\n"
diff --git a/t/t0106-rack-input-keepalive.sh b/t/t0106-rack-input-keepalive.sh
index 5dade57..f9c9758 100755
--- a/t/t0106-rack-input-keepalive.sh
+++ b/t/t0106-rack-input-keepalive.sh
@@ -17,6 +17,8 @@ t_begin "setup and startup" && {
 t_begin "send big pipelined chunked requests" && {
         (
                 cat $fifo > $tmp &
+                Connection=keep-alive
+                export Connection
                 content-md5-put < random_blob
                 content-md5-put < random_blob
                 content-md5-put < random_blob