Skip to content

Commit e194ff4

Browse files
committed
[PRMP-1048] fixing tests
1 parent edb4527 commit e194ff4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lambdas/tests/unit/handlers/test_concurrency_controller_handler.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ def test_lambda_handler_with_large_concurrency(context, mock_concurrency_control
8585
assert result["body"]["message"] == "Concurrency updated successfully"
8686
assert result["body"]["function"] == "test-lambda-function"
8787
assert result["body"]["reservedConcurrency"] == 1000
88-
89-
mock_concurrency_controller_service.update_function_concurrency.assert_called_once_with(
90-
"test-lambda-function", 1000
91-
)
92-
93-
assert result == expected_response
9488

9589

9690
def test_validate_event_success(valid_event):

lambdas/tests/unit/services/test_concurrency_controller_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def test_update_function_concurrency_invalid_parameter(service, mock_lambda_clie
104104
service.update_function_concurrency(target_function, reserved_concurrency)
105105

106106
mock_logger.error.assert_called_once_with(
107-
f"Failed to update concurrency: An error occurred (InvalidParameterValueException) when calling the PutFunctionConcurrency operation: Reserved concurrency value must be non-negative"
107+
f"Failed to update concurrency: An error occurred (InvalidParameterValueException) when calling the "
108+
f"PutFunctionConcurrency operation: Reserved concurrency value must be non-negative"
108109
)
109110

110111

0 commit comments

Comments
 (0)