search for: test_stderr

Displaying 1 result from an estimated 1 matches for "test_stderr".

2013 Nov 05
4
Handling closed clients
...raise "Timed out" - buf = sock.read - assert_equal "", buf + assert_match %r{\AHTTP/1.[01] 500\b}, sock.sysread(4096) next_client = Net::HTTP.get(URI.parse("http://127.0.0.1:#@port/")) assert_equal ''hello!\n'', next_client lines = File.readlines("test_stderr.#$$.log") @@ -265,4 +264,55 @@ class WebServerTest < Test::Unit::TestCase def test_listener_names assert_equal [ "127.0.0.1:#@port" ], Unicorn.listener_names end + + # ensure that EOFError from client code is not ignored + def test_eof_app + teardown + app = lambda { |env| raise E...