Skip to content

Commit 177d327

Browse files
authored
fix: leaky test (#591)
1 parent 13839e4 commit 177d327

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/test/opentelemetry/sdk/configurator_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
describe 'when there is a resource key collision' do
4848
let(:expected_resource_attributes) { default_resource_attributes.merge('important_value' => '25') }
4949

50+
after do
51+
OpenTelemetry::SDK::Resources::Resource.instance_variable_set(:@default, nil)
52+
end
53+
5054
it 'uses the user provided resources' do
5155
with_env('OTEL_RESOURCE_ATTRIBUTES' => 'important_value=100') do
5256
configurator.resource = OpenTelemetry::SDK::Resources::Resource.create('important_value' => '25')

0 commit comments

Comments
 (0)