Skip to content

Commit 3bbabd2

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/plugin/test_buf_file.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,12 @@ def write_metadata(path, chunk_id, metadata, size, ctime, mtime)
755755
@p.close unless @p.closed?
756756
@p.terminate unless @p.terminated?
757757
end
758+
if @d
759+
@d.stop unless @d.stopped?
760+
@d.before_shutdown unless @d.before_shutdown?
761+
@d.shutdown unless @d.shutdown?
762+
@d.after_shutdown unless @d.after_shutdown?
763+
end
758764
end
759765

760766
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)