Skip to content

Commit a97d6ac

Browse files
committed
fix tests
1 parent 4091dbe commit a97d6ac

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/integration/test_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def test_uds_wrong_socket_path():
110110
"unix:///tmp/ddagent/nosockethere/{}/traces".format(encoding if encoding else "v0.5"),
111111
3,
112112
exc_info=True,
113+
extra={"send_to_telemetry": False},
113114
)
114115
]
115116
log.error.assert_has_calls(calls)
@@ -384,6 +385,7 @@ def test_trace_generates_error_logs_when_trace_agent_url_invalid():
384385
"http://localhost:8125/{}/traces".format(encoding if encoding else "v0.5"),
385386
3,
386387
exc_info=True,
388+
extra={"send_to_telemetry": False},
387389
)
388390
]
389391
log.error.assert_has_calls(calls)

tests/llmobs/test_llmobs_span_agentless_writer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def test_send_completion_bad_api_key(mock_writer_logs):
9595
"https://llmobs-intake.datad0g.com/api/v2/llmobs",
9696
403,
9797
b'{"errors":[{"status":"403","title":"Forbidden","detail":"API key is invalid"}]}',
98+
extra={'send_to_telemetry': False}
9899
)
99100

100101

tests/llmobs/test_logger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def test_send_log_bad_api_key(mock_logs):
6060
"https://http-intake.logs.datadoghq.com/api/v2/logs",
6161
403,
6262
b'{"errors":[{"status":"403","title":"Forbidden","detail":"API key is invalid"}]}',
63+
extra={'send_to_telemetry': False}
6364
)
6465

6566

0 commit comments

Comments
 (0)