Skip to content

Commit 340180f

Browse files
committed
test_buf_file_single: ensure to shutdown plugin instances
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 247c305 commit 340180f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/plugin/test_buf_file_single.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,12 @@ def create_driver(conf = TAG_CONF, klass = FluentPluginFileSingleBufferTest::Dum
790790
@p.close unless @p.closed?
791791
@p.terminate unless @p.terminated?
792792
end
793+
if @d
794+
@d.stop unless @d.stopped?
795+
@d.before_shutdown unless @d.before_shutdown?
796+
@d.shutdown unless @d.shutdown?
797+
@d.after_shutdown unless @d.after_shutdown?
798+
end
793799
end
794800

795801
test 'worker(id=0) #resume returns staged/queued chunks with metadata, not only in worker dir, including the directory specified by path' do

0 commit comments

Comments
 (0)