diff --git a/test/command/test_fluentd.rb b/test/command/test_fluentd.rb index 5719055521..5f73110017 100644 --- a/test/command/test_fluentd.rb +++ b/test/command/test_fluentd.rb @@ -72,6 +72,11 @@ def create_cmdline(conf_path, *fluentd_options) end def process_kill(pid) + if Fluent.windows? + Process.kill(:KILL, pid) rescue nil + return + end + begin Process.kill(:TERM, pid) rescue nil Timeout.timeout(10){ sleep 0.1 while process_exist?(pid) }