Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: majimenez-stratio <[email protected]>
  • Loading branch information
majimenez-stratio committed Oct 31, 2021
1 parent 2f4900e commit 179c765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def test_shorter_than_rotate_wait
rotated = false
detached = false
d = create_driver(config)
mock.proxy(d.instance).setup_watcher(anything, anything) do |tw|
mock.proxy(d.instance).setup_watcher(anything, anything, anything) do |tw|
mock.proxy(tw).detach(anything) do |v|
detached = true
v
Expand Down Expand Up @@ -2188,7 +2188,7 @@ def test_ENOENT_error_after_setup_watcher
'format' => 'none',
})
d = create_driver(config)
mock.proxy(d.instance).setup_watcher(anything, anything) do |tw|
mock.proxy(d.instance).setup_watcher(anything, anything, anything) do |tw|
cleanup_file(path)
tw
end
Expand Down

0 comments on commit 179c765

Please sign in to comment.