about summary refs log tree commit homepage
path: root/t/t0034-pipelined-pipe-response.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-19 15:06:10 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-19 15:06:27 -0800
commit9424b13255a238dfa44952ebeb07bea3acee999c (patch)
tree9a517e9b22a3cc73c9ad16c9288eedf09ac18b8a /t/t0034-pipelined-pipe-response.sh
parent7a04133c1ab57923cac8a9de04b00bfe89bcce2d (diff)
downloadrainbows-9424b13255a238dfa44952ebeb07bea3acee999c.tar.gz
Coolio and EventMachine only use level-triggered epoll,
but being Rainbows!, we live on the EDGE!
Diffstat (limited to 't/t0034-pipelined-pipe-response.sh')
-rwxr-xr-xt/t0034-pipelined-pipe-response.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0034-pipelined-pipe-response.sh b/t/t0034-pipelined-pipe-response.sh
index 8346af9..6dff9ad 100755
--- a/t/t0034-pipelined-pipe-response.sh
+++ b/t/t0034-pipelined-pipe-response.sh
@@ -22,12 +22,13 @@ require "kcar"
 $stdin.binmode
 expect = ENV["random_blob_sha1"]
 kcar = Kcar::Response.new($stdin, {})
-3.times do
+3.times do |i|
         nr = 0
         status, headers, body = kcar.rack
         dig = Digest::SHA1.new
         body.each { |buf| dig << buf ; nr += buf.size }
         sha1 = dig.hexdigest
+        warn "[#{i}] nr: #{nr}"
         sha1 == expect or abort "mismatch: sha1=#{sha1} != expect=#{expect}"
         body.close
 end