Skip to content

Commit ec5ba20

Browse files
authored
Apply suggestion from @xrmx
1 parent 4ffd3dd commit ec5ba20

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

opentelemetry-sdk/tests/_configuration/test_resource.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ def test_host_detector_not_run_when_detection_development_is_none(self):
337337
self.assertNotIn(HOST_NAME, resource.attributes)
338338

339339
def test_host_detector_not_run_when_detectors_list_empty(self):
340+
config = ResourceConfig(
341+
detection_development=ExperimentalResourceDetection(detectors=[])
342+
)
343+
resource = create_resource(config)
340344
self.assertNotIn(HOST_NAME, resource.attributes)
341345

342346
def test_explicit_attributes_override_host_detector(self):

0 commit comments

Comments
 (0)