Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary condition #2838

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions test/plugin_helper/test_http_server_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,20 +161,12 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr
assert_equal(nil, resp.body)
assert_equal('text/plain', resp['Content-Type'])

%w[get put post put delete trace].each do |n|
%w[get put post put delete options trace].each do |n|
resp = send(n, "http://127.0.0.1:#{PORT}/example/hello")
assert_equal('200', resp.code)
assert_equal("hello #{n}", resp.body)
assert_equal('text/plain', resp['Content-Type'])
end

# TODO: remove when fluentd drop ruby 2.1
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('2.2.0')
resp = options("http://127.0.0.1:#{PORT}/example/hello")
assert_equal('200', resp.code)
assert_equal("hello options", resp.body)
assert_equal('text/plain', resp['Content-Type'])
end
end
end

Expand Down