Skip to content

Commit

Permalink
CI: Support Fluentd after v1.13.3
Browse files Browse the repository at this point in the history
Signed-off-by: Daijiro Fukuda <[email protected]>
  • Loading branch information
daipom committed Feb 21, 2023
1 parent 035b284 commit c7fd416
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 c7fd416

Please sign in to comment.