Skip to content

Commit 2ed6ad6

Browse files
committed
Revert "fix(tests): remove stale _dd.compute_stats:1 assertion from logs integration test (#1136)"
This reverts commit 672f268.
1 parent 1470194 commit 2ed6ad6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bottlecap/tests/logs_integration_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ 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"#;
2526
let regexp_arch = format!(r#"architecture:{}"#, arch);
2627
let regexp_function_arn = r#"function_arn:test-arn"#;
2728
let regexp_extension_version = r#"dd_extension_version"#;
@@ -33,6 +34,7 @@ async fn test_logs() {
3334
.header("DD-API-KEY", dd_api_key)
3435
.header("Content-Type", "application/json")
3536
.body_contains(regexp_message)
37+
.body_contains(regexp_compute_state)
3638
.body_contains(regexp_arch)
3739
.body_contains(regexp_function_arn)
3840
.body_contains(regexp_extension_version);

0 commit comments

Comments
 (0)