Skip to content

Commit 9002856

Browse files
committed
chore: add test fo run_concurrent not being called in the non mc path
1 parent d2b14c0 commit 9002856

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class TestMain(unittest.TestCase):
1212
@patch("awslambdaric.__main__.bootstrap")
1313
@patch("awslambdaric.__main__.LambdaRuntimeClient")
1414
@patch("awslambdaric.__main__.LambdaConfigProvider")
15+
@patch("awslambdaric.lambda_multi_concurrent_utils.MultiConcurrentRunner")
1516
def test_default_path_invokes_runtime_client_and_bootstrap(
1617
self, mock_config_provider, mock_client_cls, mock_bootstrap
1718
):
@@ -30,6 +31,8 @@ def test_default_path_invokes_runtime_client_and_bootstrap(
3031
"my.handler", mock_client_cls.return_value
3132
)
3233

34+
mock_runner.run_concurrent.assert_not_called()
35+
3336
@patch("awslambdaric.lambda_multi_concurrent_utils.MultiConcurrentRunner")
3437
@patch("awslambdaric.__main__.LambdaConfigProvider")
3538
def test_multi_concurrent_path_dispatches_to_multi_concurrent_runner(

0 commit comments

Comments
 (0)