Skip to content
This repository
Browse code

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...
commit 8bb48545debcac8d95643899f8314f44910c46fa 1 parent 1270672
Hiroshi Nakamura authored

Showing 1 changed file with 0 additions and 13 deletions. Show diff stats Hide diff stats

  1. +0 13 test/test_httpclient.rb
13 test/test_httpclient.rb
@@ -748,19 +748,6 @@ def test_post_with_file
748 748 end
749 749 end
750 750
751   - def test_post_with_file_without_size
752   - STDOUT.sync = true
753   - File.open(__FILE__) do |file|
754   - def file.size
755   - # Simulates some strange Windows behaviour
756   - raise SystemCallError.new "Unknown Error (20047)"
757   - end
758   - assert_nothing_raised do
759   - @client.post(serverurl + 'servlet', {1=>2, 3=>file})
760   - end
761   - end
762   - end
763   -
764 751 def test_post_with_io # streaming, but not chunked
765 752 myio = StringIO.new("X" * (HTTP::Message::Body::DEFAULT_CHUNK_SIZE + 1))
766 753 def myio.read(*args)

0 comments on commit 8bb4854

Please sign in to comment.
Something went wrong with that request. Please try again.