Skip to content

Commit

Permalink
Replace with close
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Jul 28, 2023
1 parent 397d552 commit 6430b54
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/datadog/tracing/contrib/suite/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ def build(*dynamic_configurations)
context 'for log_injection_enabled' do
let(:tracing_sampling_rate) { 0.0 }
let(:io) { StringIO.new }
let(:appender) { SemanticLogger.add_appender(io: io) }
let(:logger) do
appender
SemanticLogger.add_appender(io: io)
SemanticLogger['TestClass']
end

Expand All @@ -247,10 +246,7 @@ def build(*dynamic_configurations)
end
end

after do
SemanticLogger.remove_appender(appender)
SemanticLogger::Logger.processor.thread.kill
end
after { SemanticLogger.close }

it 'changes disables log injection' do
# Before
Expand Down

0 comments on commit 6430b54

Please sign in to comment.