Skip to content

Commit a6a3b5e

Browse files
authored
test: fix driver activity period (#237)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent f8e8418 commit a6a3b5e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

spec/fluent/plugin/shared.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,12 @@
289289

290290
shared_examples_for 'instruments record' do
291291
before do
292-
driver.run(default_tag: tag) { driver.feed(event_time, message) }
292+
# Should not shut down driver because it will be used in subsequent tests.
293+
driver.run(default_tag: tag, shutdown: false) { driver.feed(event_time, message) }
294+
end
295+
296+
after do
297+
driver.instance_shutdown
293298
end
294299

295300
context 'full config' do

0 commit comments

Comments
 (0)