Skip to content

Commit

Permalink
Fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance Zibolski committed Nov 29, 2017
1 parent 4a09322 commit 9eb8473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ task build: "docker:test"
task default: :reevoocop

namespace :docker do
distros = [:ubuntu, :"tdagent-ubuntu", :"tdagent-centos"]
distros = %i[ubuntu tdagent-ubuntu tdagent-centos]
task test: distros

distros.each do |distro|
Expand Down
6 changes: 3 additions & 3 deletions test/plugin/test_in_systemd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def setup
)
end

attr_reader :journal, :base_config, :pos_path, :pos_config, :head_config, :filter_config, :strip_config, :tail_config, :badmsg_config
attr_reader :journal, :base_config, :pos_path, :pos_config, :head_config,
:filter_config, :strip_config, :tail_config, :badmsg_config

def create_driver(config)
Fluent::Test::InputTestDriver.new(Fluent::SystemdInput).configure(config)
Expand Down Expand Up @@ -118,7 +119,6 @@ def test_reading_from_the_journal_tail_with_strip_underscores
d.run
end


def test_pos_file_is_written
d = create_driver(pos_config)
d.run
Expand Down Expand Up @@ -146,7 +146,7 @@ def test_reading_from_a_pos
assert_equal 143, d.emits.size
end

def test_reading_from_an_invalid_pos # rubocop:disable Metrics/AbcSize
def test_reading_from_an_invalid_pos
file = File.open(pos_path, "w+")
file.print "thisisinvalid"
file.close
Expand Down

0 comments on commit 9eb8473

Please sign in to comment.