about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-15 00:56:47 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-15 00:56:47 +0000
commite9e7a1c7c1778ed7cd7c724b26362d1f89b2801c (patch)
tree08221c44c87531fd6ea81d2fcf8bf932adf5dbc3
parenta7d9eb03bf3ac554854990018a67f34c2221fb20 (diff)
downloadunicorn-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
-rw-r--r--test/unit/test_http_parser.rb2
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