Skip to content

Commit 4ef10d2

Browse files
committed
ci: remove reference to mock object after test
This patch should fix #5054 Signed-off-by: Shizuo Fujita <[email protected]>
1 parent fd711c5 commit 4ef10d2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/plugin/test_input.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,7 @@ def emit(tag, es)
133133
assert{ @p.router.object_id != original_router.object_id }
134134

135135
@p.router.emit('mytag.testing', ['for mock'])
136+
ensure
137+
Fluent::Engine.root_agent.labels['@mytest'] = nil
136138
end
137139
end

test/plugin_helper/test_event_emitter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class Dummy < Fluent::Plugin::TestBase
7070
d.configure(config_element('ROOT', '', {'@label' => '@mytest'}))
7171
router = d.event_emitter_router("@mytest")
7272
assert_equal router_mock, router
73+
ensure
74+
Fluent::Engine.root_agent.labels['@mytest'] = nil
7375
end
7476

7577
test 'get root router' do

0 commit comments

Comments
 (0)