Skip to content

Commit 81a2171

Browse files
committed
chore(tests): n+1 is sufficient to trigger exception
Signed-off-by: heitorlessa <lessa@amazon.co.uk>
1 parent caaa61f commit 81a2171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/functional/test_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def test_schema_no_metrics(service, namespace):
321321

322322
def test_exceed_number_of_dimensions(metric, namespace):
323323
# GIVEN we have more dimensions than CloudWatch supports (N+1)
324-
dimensions = [{"name": f"test_{i}", "value": "test"} for i in range(MAX_DIMENSIONS + 2)]
324+
dimensions = [{"name": f"test_{i}", "value": "test"} for i in range(MAX_DIMENSIONS + 1)]
325325

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

0 commit comments

Comments
 (0)