Skip to content

Commit

Permalink
test_in_tail: Fix a failed test on windows & mac
Browse files Browse the repository at this point in the history
Because they doesn't support inotify.

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed May 13, 2021
1 parent 93d1a1a commit 81162e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,11 @@ def test_emit_with_read_bytes_limit_per_second(data)
require 'fluent/config/types'
limit_bytes_value = Fluent::Config.size_value(limit_bytes)
io_handler.instance_variable_set(:@number_bytes_read, limit_bytes_value)
mock.proxy(io_handler).handle_notify.at_least(5)
if Fluent.linux?
mock.proxy(io_handler).handle_notify.at_least(5)
else
mock.proxy(io_handler).handle_notify.twice
end
io_handler
end

Expand Down

0 comments on commit 81162e9

Please sign in to comment.