Skip to content

Commit

Permalink
Check the feature by itself, instead of the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 8, 2019
1 parent 8b96088 commit 79d7922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/webrick/test_filehandler.rb
Expand Up @@ -308,7 +308,7 @@ def req.meta_vars
TestWEBrick.start_httpserver(config, log_tester) do |server, addr, port, log|
http = Net::HTTP.new(addr, port)
http.read_timeout = EnvUtil.apply_timeout_scale(60)
http.write_timeout = EnvUtil.apply_timeout_scale(60) if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6.0')
http.write_timeout = EnvUtil.apply_timeout_scale(60) if http.respond_to?(:write_timeout=)

req = Net::HTTP::Get.new("/webrick.cgi/test")
http.request(req) do |res|
Expand Down

0 comments on commit 79d7922

Please sign in to comment.