Skip to content
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
11 changes: 9 additions & 2 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -836,13 +836,16 @@ def test_worker_completion_detects_rotation_and_drains_both_files
path = "#{@tmp_dir}/tail.txt"
Fluent::FileWrapper.open(path, 'wb') {}
config = CONFIG_READ_FROM_HEAD + SINGLE_LINE_CONFIG + config_element('', '', {
'path' => path,
'pos_file' => "#{@tmp_dir}/tail.pos",
'tag' => 't1',
'num_threads' => 2,
'read_lines_limit' => 1,
'rotate_wait' => '1s',
'refresh_interval' => '1h',
'enable_stat_watcher' => false,
})
driver = create_driver(config)
driver = create_driver(config, false)
parse_started = Queue.new
continue_parse = Queue.new

Expand All @@ -869,12 +872,16 @@ def test_worker_completion_drains_file_during_unwatch
path = "#{@tmp_dir}/tail.txt"
Fluent::FileWrapper.open(path, 'wb') {}
config = CONFIG_READ_FROM_HEAD + SINGLE_LINE_CONFIG + config_element('', '', {
'path' => path,
'pos_file' => "#{@tmp_dir}/tail.pos",
'tag' => 't1',
'num_threads' => 2,
'read_lines_limit' => 1,
'refresh_interval' => '1h',
'enable_stat_watcher' => true,
'enable_watch_timer' => false,
})
driver = create_driver(config)
driver = create_driver(config, false)
parse_started = Queue.new
continue_parse = Queue.new
position_entry = nil
Expand Down
Loading