Skip to content

Commit a52d648

Browse files
committed
WIP
1 parent 8379c7f commit a52d648

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/fluent/plugin/test_in_opentelemetry_metrics.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,26 @@ def setup
6363
</label>
6464
CONFIG
6565

66-
@root_agent = Fluent::RootAgent.new(log: $log) # rubocop:disable Style/GlobalVars
67-
stub(Fluent::Engine).root_agent { @root_agent }
68-
@root_agent = configure_root_agent(@root_agent, conf)
66+
root_agent = Fluent::RootAgent.new(log: $log) # rubocop:disable Style/GlobalVars
67+
stub(Fluent::Engine).root_agent { root_agent }
68+
configure_root_agent(root_agent, conf)
6969
end
7070

7171
def teardown
7272
Timecop.mock_process_clock = false
7373
Timecop.return
7474
end
7575

76-
def create_driver(conf = config)
77-
Fluent::Test::Driver::Input.new(Fluent::Plugin::OpentelemetryMetricsInput).configure(conf)
78-
end
79-
8076
def configure_root_agent(root_agent, conf_str)
8177
conf = Fluent::Config.parse(conf_str, "(test)", "(test_dir)", true)
8278
root_agent.configure(conf)
8379
root_agent
8480
end
8581

82+
def create_driver(conf = config)
83+
Fluent::Test::Driver::Input.new(Fluent::Plugin::OpentelemetryMetricsInput).configure(conf)
84+
end
85+
8686
def config
8787
<<~CONFIG
8888
tag opentelemetry.test

0 commit comments

Comments
 (0)