Skip to content

Commit

Permalink
Merge pull request #8 from daipom/ci-support-fluentd-after-v1.13.3
Browse files Browse the repository at this point in the history
CI: Support Fluentd after v1.13.3
  • Loading branch information
kenhys authored Mar 2, 2023
2 parents 035b284 + c7fd416 commit 0ee60a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin/test_in_utmpx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_pos_file
@pf = Fluent::Plugin::TailInput::PositionFile.new(file, logger: nil)
@pe = @pf[wtmp_path]
else
@pf = Fluent::Plugin::TailInput::PositionFile.new(file, false, {wtmp_path => target_info}, logger: nil)
@pf = Fluent::Plugin::TailInput::PositionFile.load(file, false, {wtmp_path => target_info}, logger: nil)
@pe = @pf[target_info]
end
@pe.update_pos(@tail_position)
Expand All @@ -114,7 +114,7 @@ def test_truncated
@pf = Fluent::Plugin::TailInput::PositionFile.new(file, logger: nil)
@pe = @pf[wtmp_path]
else
@pf = Fluent::Plugin::TailInput::PositionFile.new(file, false, {wtmp_path => target_info}, logger: nil)
@pf = Fluent::Plugin::TailInput::PositionFile.load(file, false, {wtmp_path => target_info}, logger: nil)
@pe = @pf[target_info]
end
@pe.update_pos(@tail_position)
Expand Down

0 comments on commit 0ee60a0

Please sign in to comment.