Skip to content

Commit 9097f90

Browse files
committed
chore(metrics): revert dimensions test before splitting
1 parent 9d8dd1b commit 9097f90

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/functional/test_metrics.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,9 @@ def test_schema_no_metrics(service, namespace):
319319
my_metrics.serialize_metric_set()
320320

321321

322-
def test_exceed_number_of_dimensions(metric, namespace, monkeypatch):
322+
def test_exceed_number_of_dimensions(metric, namespace):
323323
# GIVEN we we have more dimensions than CloudWatch supports
324-
# and that service dimension is injected like a user-defined dimension (N+1)
325-
monkeypatch.setenv("POWERTOOLS_SERVICE_NAME", "test_service")
326-
dimensions = [{"name": f"test_{i}", "value": "test"} for i in range(9)]
324+
dimensions = [{"name": f"test_{i}", "value": "test"} for i in range(11)]
327325

328326
# WHEN we attempt to serialize them into a valid EMF object
329327
# THEN it should fail validation and raise SchemaValidationError

0 commit comments

Comments
 (0)