diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-19 03:46:33 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-20 00:01:43 -0800 |
commit | c27260bebda77ef29e1953fb092b6162c6dcebd7 (patch) | |
tree | ab22af122117d9ff1bc5d01074ef49f2388f9567 /test/unit/test_upload.rb | |
parent | 696f61e21051ccf16dcf4fe93f5dc6da445cbd8c (diff) | |
download | unicorn-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/unit/test_upload.rb')
-rw-r--r-- | test/unit/test_upload.rb | 2 |
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 |