search for: redirect_test_io

Displaying 3 results from an estimated 3 matches for "redirect_test_io".

2006 May 31
1
SVN revision 218: errors and failures under win32.
...lers.rb:75-76 res = hit([ "http://127.0.0.1:9998/", "http://127.0.0.1:9998/test", I cannot solve the other failures: 1) Failure: test_header_is_too_long(WebServerTest) [./test/test_ws.rb:93:in `test_header_is_too_long'' ./test/testhelp.rb:8:in `redirect_test_io'' ./test/test_ws.rb:91:in `test_header_is_too_long'']: <[Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNABORTED]> exception expected but none was thrown. 2) Failure: test_num_processors_overload(WebServerTest) [./test/test_ws.rb:101:in `test_num_processors_overload...
2013 Nov 05
4
Handling closed clients
...5 @@ 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 EOFError } + # [200, {}, []] } + redirect_test_io do + @server = HttpServer.new(app, :listeners => [ "127.0.0.1:#@port"] ) + @server.start + end + sock = TCPSocket.new(''127.0.0.1'', @port) + sock.syswrite("GET / HTTP/1.0\r\n\r\n") + assert_match %r{\AHTTP/1.[01] 500\b}, sock.sysread(4096) + assert_nil sock.c...
2006 Jul 01
0
Fun with Mongrel and cygwin.
...ter, it compiled worked ok (taste like *nix, so I felt a bit off-road running this). Anyway, tried to pass test for mongrel, and still get 1 failure: 1) Failure: test_header_is_too_long(WebServerTest) [./test/test_ws.rb:81:in `test_header_is_too_long'' ./test/testhelp.rb:14:in `redirect_test_io'' ./test/test_ws.rb:79:in `test_header_is_too_long'']: <[Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNABORTED, Errno::EINVAL]> exception expected but none was thrown. Because cygwin IS windows, the sockets works the same way like mswin32 platform. adding /mingw|cygwin|m...