From 18ef7e696e635c7a44693a0724ce423b2c31eeaa Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Tue, 6 Aug 2024 17:25:33 +0900 Subject: [PATCH] test_io_handler: Follow a recent change in metrics `throttling_metrics` has been newly added. Signed-off-by: Takuro Ashie --- test/plugin/in_tail/test_io_handler.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/plugin/in_tail/test_io_handler.rb b/test/plugin/in_tail/test_io_handler.rb index f305fdbdc3..5dd37dc4b8 100644 --- a/test/plugin/in_tail/test_io_handler.rb +++ b/test/plugin/in_tail/test_io_handler.rb @@ -15,7 +15,9 @@ def setup closed_file_metrics.configure(config_element('metrics', '', {})) rotated_file_metrics = Fluent::Plugin::LocalMetrics.new rotated_file_metrics.configure(config_element('metrics', '', {})) - @metrics = Fluent::Plugin::TailInput::MetricsInfo.new(opened_file_metrics, closed_file_metrics, rotated_file_metrics) + throttling_metrics = Fluent::Plugin::LocalMetrics.new + throttling_metrics.configure(config_element('metrics', '', {})) + @metrics = Fluent::Plugin::TailInput::MetricsInfo.new(opened_file_metrics, closed_file_metrics, rotated_file_metrics, throttling_metrics) yield end end