Skip to content

Commit 059fec9

Browse files
committed
improv: explicitly assert not having ColdStart metric
1 parent f51ba7c commit 059fec9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/functional/test_metrics.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,12 @@ def lambda_handler(evt, context):
662662
# and that application metrics dimensions are not part of ColdStart EMF blob
663663
assert "test_dimension" not in cold_start_blob
664664

665-
# THEN application metrics EMF blob should not have function_name dimension
665+
# THEN application metrics EMF blob should not have
666+
# ColdStart metric nor function_name dimension
666667
assert "function_name" not in custom_metrics_blob
668+
assert "ColdStart" not in custom_metrics_blob
669+
670+
# and that application metrics are recorded as normal
667671
assert custom_metrics_blob["service"] == service
668672
assert custom_metrics_blob["single_metric"] == metric["value"]
669673
assert custom_metrics_blob["test_dimension"] == dimension["value"]

0 commit comments

Comments
 (0)