Skip to content

Commit f571ffb

Browse files
committed
linting fix
1 parent fc77123 commit f571ffb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_opentelementry_configurator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,14 +1019,12 @@ def test_validate_and_fetch_logs_header(self):
10191019
@patch("amazon.opentelemetry.distro.aws_opentelemetry_configurator._is_aws_otlp_endpoint")
10201020
def test_customize_log_record_processor_with_agent_observability(self, mock_is_aws_endpoint, mock_is_agent_enabled):
10211021
"""Test that AwsCloudWatchOtlpBatchLogRecordProcessor is used when agent observability is enabled"""
1022-
# Mock the OTLPAwsLogExporter
10231022
mock_exporter = MagicMock(spec=OTLPAwsLogExporter)
1024-
1025-
# Test case 1: Agent observability enabled and AWS logs endpoint
10261023
mock_is_agent_enabled.return_value = True
10271024
mock_is_aws_endpoint.return_value = True
10281025

10291026
processor = _customize_log_record_processor(mock_exporter)
1027+
10301028
self.assertIsInstance(processor, AwsCloudWatchOtlpBatchLogRecordProcessor)
10311029

10321030
@patch("amazon.opentelemetry.distro.aws_opentelemetry_configurator._validate_and_fetch_logs_header")

0 commit comments

Comments
 (0)