Skip to content

Commit

Permalink
* test/net/http/test_connection.rb (TestHTTP::HTTPConnectionTest#tes…
Browse files Browse the repository at this point in the history
…t_connection_refused_in_request):

          Wrong exception to assert.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed May 22, 2010
1 parent 906f096 commit 8046a04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Sat May 22 21:54:58 2010 URABE Shyouhei <shyouhei@ruby-lang.org>

* test/net/http/test_connection.rb (TestHTTP::HTTPConnectionTest#test_connection_refused_in_request):
Wrong exception to assert.

Sat May 22 21:03:16 2010 Tanaka Akira <akr@fsij.org> Sat May 22 21:03:16 2010 Tanaka Akira <akr@fsij.org>


* io.c (rb_io_modenum_mode): return "r" for O_RDONLY|O_APPEND. * io.c (rb_io_modenum_mode): return "r" for O_RDONLY|O_APPEND.
Expand Down
2 changes: 1 addition & 1 deletion test/net/http/test_connection.rb
Expand Up @@ -17,7 +17,7 @@ def test_connection_refused_in_request
} }
begin begin
sleep 0.1 until port sleep 0.1 until port
assert_raise(Errno::ECONNRESET, bug2708) { assert_raise(EOFError, bug2708) {
n = Net::HTTP.new(localhost, port) n = Net::HTTP.new(localhost, port)
n.request_get('/') n.request_get('/')
} }
Expand Down

0 comments on commit 8046a04

Please sign in to comment.