Displaying 3 results from an estimated 3 matches for "webservertest".
2006 May 31
1
SVN revision 218: errors and failures under win32.
..._server(HandlersTest):
EOFError: end of file reached
I solved this changing the following lines in test_handlers.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) Fa...
2013 Nov 05
4
Handling closed clients
...t;app error", e)
+ 500
+ end
end
if code
client.kgio_trywrite(err_response(code, @request.response_start_sent))
diff --git a/test/unit/test_server.rb b/test/unit/test_server.rb
index e5b335f..2fca1b4 100644
--- a/test/unit/test_server.rb
+++ b/test/unit/test_server.rb
@@ -145,8 +145,7 @@ class WebServerTest < Test::Unit::TestCase
# processing on us even during app dispatch
sock.shutdown(Socket::SHUT_WR)
IO.select([sock], nil, nil, 60) or raise "Timed out"
- buf = sock.read
- assert_equal "", buf
+ assert_match %r{\AHTTP/1.[01] 500\b}, sock.sysread(4096)
next_client = Net::HTTP.g...
2006 Jul 01
0
Fun with Mongrel and cygwin.
...read_id=6978&forum_id=5450
Due that, I manage to install cygwin, ruby and rails on my humble
little computer, 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...