Skip to content

Commit

Permalink
run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
khanayan123 committed Jan 9, 2025
1 parent 3429244 commit 9f484c5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_config_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def test_log_injection_128bit_traceid_default(self):
trace_id = dd.get("trace_id")
assert re.match(r"^[0-9a-f]{32}$", trace_id), f"Invalid 128-bit trace_id: {trace_id}"


@rfc("https://docs.google.com/document/d/1kI-gTAKghfcwI7YzKhqRv2ExUstcHqADIWA4-TZ387o/edit#heading=h.8v16cioi7qxp")
@scenarios.tracing_config_nondefault_3
@features.tracing_configuration_consistency
Expand Down Expand Up @@ -518,6 +519,7 @@ def test_config_runtimemetrics_default(self):
data = list(interfaces.library.get_data("/dogstatsd/v2/proxy"))
assert len(data) == 0


def parse_log_injection_message(log_message):
for data in stdout.get_data():
json_string = json.dumps(data)
Expand All @@ -527,9 +529,6 @@ def parse_log_injection_message(log_message):
message = json.loads(parsed_data.get("message"))
except json.JSONDecodeError:
continue
if (
message.get("dd")
and message.get(log_injection_fields[context.library.library]["message"]) == log_message
):
if message.get("dd") and message.get(log_injection_fields[context.library.library]["message"]) == log_message:
dd = message.get("dd")
return dd
return dd

0 comments on commit 9f484c5

Please sign in to comment.