Permalink
Browse files

Remove the workaround for JRUBY-6136

The logic introduced at 767cd87 was
removed by 1270672 so remove the test
as well.

Now JRUBY-6136 can happen again but anyway we have more 'IO#size' calls
that could cause the issue.  Better fix JRuby itself now.
  • Loading branch information...
1 parent 1270672 commit 8bb48545debcac8d95643899f8314f44910c46fa @nahi committed Oct 10, 2012
Showing with 0 additions and 13 deletions.
  1. +0 −13 test/test_httpclient.rb
View
13 test/test_httpclient.rb
@@ -748,19 +748,6 @@ def test_post_with_file
end
end
- def test_post_with_file_without_size
- STDOUT.sync = true
- File.open(__FILE__) do |file|
- def file.size
- # Simulates some strange Windows behaviour
- raise SystemCallError.new "Unknown Error (20047)"
- end
- assert_nothing_raised do
- @client.post(serverurl + 'servlet', {1=>2, 3=>file})
- end
- end
- end
-
def test_post_with_io # streaming, but not chunked
myio = StringIO.new("X" * (HTTP::Message::Body::DEFAULT_CHUNK_SIZE + 1))
def myio.read(*args)

0 comments on commit 8bb4854

Please sign in to comment.