Skip to content

Commit

Permalink
Merge pull request #1622 from ymizushi/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in test/plugin/test_in_tail.rb
  • Loading branch information
repeatedly authored Jul 11, 2017
2 parents e3bd8da + b18589f commit 028dc3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def test_multiline_without_firstline(data)
sub_test_case "path" do
# * path test
# TODO: Clean up tests
EX_RORATE_WAIT = 0
EX_ROTATE_WAIT = 0

EX_CONFIG = config_element("", "", {
"tag" => "tail",
Expand All @@ -832,7 +832,7 @@ def test_multiline_without_firstline(data)
"pos_file" => "#{TMP_DIR}/tail.pos",
"read_from_head" => true,
"refresh_interval" => 30,
"rotate_wait" => "#{EX_RORATE_WAIT}s",
"rotate_wait" => "#{EX_ROTATE_WAIT}s",
})
EX_PATHS = [
'test/plugin/data/2010/01/20100102-030405.log',
Expand Down Expand Up @@ -926,7 +926,7 @@ def test_z_refresh_watchers
Timecop.freeze(2010, 1, 2, 3, 4, 5) do
flexstub(Fluent::Plugin::TailInput::TailWatcher) do |watcherclass|
EX_PATHS.each do |path|
watcherclass.should_receive(:new).with(path, EX_RORATE_WAIT, Fluent::Plugin::TailInput::FilePositionEntry, any, true, true, 1000, any, any, any, any, any, any).once.and_return do
watcherclass.should_receive(:new).with(path, EX_ROTATE_WAIT, Fluent::Plugin::TailInput::FilePositionEntry, any, true, true, 1000, any, any, any, any, any, any).once.and_return do
flexmock('TailWatcher') { |watcher|
watcher.should_receive(:attach).once
watcher.should_receive(:unwatched=).zero_or_more_times
Expand All @@ -944,7 +944,7 @@ def test_z_refresh_watchers

Timecop.freeze(2010, 1, 2, 3, 4, 6) do
flexstub(Fluent::Plugin::TailInput::TailWatcher) do |watcherclass|
watcherclass.should_receive(:new).with('test/plugin/data/2010/01/20100102-030406.log', EX_RORATE_WAIT, Fluent::Plugin::TailInput::FilePositionEntry, any, true, true, 1000, any, any, any, any, any, any).once.and_return do
watcherclass.should_receive(:new).with('test/plugin/data/2010/01/20100102-030406.log', EX_ROTATE_WAIT, Fluent::Plugin::TailInput::FilePositionEntry, any, true, true, 1000, any, any, any, any, any, any).once.and_return do
flexmock('TailWatcher') do |watcher|
watcher.should_receive(:attach).once
watcher.should_receive(:unwatched=).zero_or_more_times
Expand Down

0 comments on commit 028dc3e

Please sign in to comment.