Skip to content

Commit 672f268

Browse files
fix(tests): remove stale _dd.compute_stats:1 assertion from logs integration test (#1136)
https://datadoghq.atlassian.net/browse/SVLS-8767 ## Summary - `_dd.compute_stats` was moved from general log tags to trace-only payloads in commit `55659d93` - The `test_logs` integration test mock still required `_dd.compute_stats:1` in the log body - The mock never matched → httpmock returned non-2xx → `Flusher::send()` retried infinitely → test hung forever ## Test plan - [ ] `cargo test --test logs_integration_test test_logs` passes and completes in < 1s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f0439bc commit 672f268

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bottlecap/tests/logs_integration_test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ async fn test_logs() {
2222
// protobuf is using hashmap, can't set a btreemap to have sorted keys. Using multiple regexp since
2323
// Can't do look around since -> error: look-around, including look-ahead and look-behind, is not supported
2424
let regexp_message = r#"[{"message":{"message":"START RequestId: 459921b5-681c-4a96-beb0-81e0aa586026 Version: $LATEST","lambda":{"arn":"test-arn","request_id":"459921b5-681c-4a96-beb0-81e0aa586026"},"timestamp":1666361103165,"status":"info"},"hostname":"test-arn","service":"","#;
25-
let regexp_compute_state = r#"_dd.compute_stats:1"#;
2625
let regexp_arch = format!(r#"architecture:{}"#, arch);
2726
let regexp_function_arn = r#"function_arn:test-arn"#;
2827
let regexp_extension_version = r#"dd_extension_version"#;
@@ -34,7 +33,6 @@ async fn test_logs() {
3433
.header("DD-API-KEY", dd_api_key)
3534
.header("Content-Type", "application/json")
3635
.body_contains(regexp_message)
37-
.body_contains(regexp_compute_state)
3836
.body_contains(regexp_arch)
3937
.body_contains(regexp_function_arn)
4038
.body_contains(regexp_extension_version);

0 commit comments

Comments
 (0)