about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-19 03:46:33 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-20 00:01:43 -0800
commitc27260bebda77ef29e1953fb092b6162c6dcebd7 (patch)
treeab22af122117d9ff1bc5d01074ef49f2388f9567 /test
parent696f61e21051ccf16dcf4fe93f5dc6da445cbd8c (diff)
downloadunicorn-c27260bebda77ef29e1953fb092b6162c6dcebd7.tar.gz
Reset connections can also return EPIPE under Linux, not just
ECONNRESET; so be sure to trap that error, too.
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_upload.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_upload.rb b/test/unit/test_upload.rb
index 7629fbe..edc94da 100644
--- a/test/unit/test_upload.rb
+++ b/test/unit/test_upload.rb
@@ -78,7 +78,7 @@ class UploadTest < Test::Unit::TestCase
     buf = ' ' * @bs
     sock.syswrite("PUT / HTTP/1.0\r\nContent-Length: #{length}\r\n\r\n")
     @count.times { sock.syswrite(buf) }
-    assert_raise Errno::ECONNRESET do
+    assert_raise(Errno::ECONNRESET, Errno::EPIPE) do
       ::Unicorn::Const::CHUNK_SIZE.times { sock.syswrite(buf) }
     end
   end