diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-15 00:56:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-15 00:56:47 +0000 |
commit | e9e7a1c7c1778ed7cd7c724b26362d1f89b2801c (patch) | |
tree | 08221c44c87531fd6ea81d2fcf8bf932adf5dbc3 /test/unit/test_http_parser.rb | |
parent | a7d9eb03bf3ac554854990018a67f34c2221fb20 (diff) | |
download | unicorn-e9e7a1c7c1778ed7cd7c724b26362d1f89b2801c.tar.gz |
The random garbage generator may occasionally generate URIs that are too long and cause the URI-specific error to be raised instead of the generic parser error we recently introduced. Follow-up-to: commit 742c4d77f179a757dbcb1fa350f9d75b757acfc7
Diffstat (limited to 'test/unit/test_http_parser.rb')
-rw-r--r-- | test/unit/test_http_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb index e6a990d..15e1745 100644 --- a/test/unit/test_http_parser.rb +++ b/test/unit/test_http_parser.rb @@ -761,7 +761,7 @@ class HttpParserTest < Test::Unit::TestCase get = "GET /#{rand_data(10,120)} HTTP/1.1\r\n" get << "X-Test: test\r\n" * (80 * 1024) parser.buf << get - assert_raises Unicorn::HttpParserError do + assert_raises(Unicorn::HttpParserError,Unicorn::RequestURITooLongError) do parser.parse end parser.clear |