From 5ab97e554e015f6b789f2fa80d5eab7bc8097d20 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Thu, 26 Dec 2024 18:38:45 -0100 Subject: [PATCH] Admin: Increase SFN test duration (#8437) --- .github/workflows/tests_real_aws.yml | 1 + tests/test_stepfunctions/parser/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_real_aws.yml b/.github/workflows/tests_real_aws.yml index 7dee3bfabf8d..df912c8d7196 100644 --- a/.github/workflows/tests_real_aws.yml +++ b/.github/workflows/tests_real_aws.yml @@ -40,6 +40,7 @@ jobs: with: aws-region: us-east-1 role-to-assume: arn:aws:iam::682283128318:role/GithubActionsRole + role-duration-seconds: 7200 - name: Test with pytest env: MOTO_TEST_ALLOW_AWS_REQUEST: ${{ true }} diff --git a/tests/test_stepfunctions/parser/__init__.py b/tests/test_stepfunctions/parser/__init__.py index 46ac1a46d44c..377f03f87820 100644 --- a/tests/test_stepfunctions/parser/__init__.py +++ b/tests/test_stepfunctions/parser/__init__.py @@ -70,7 +70,7 @@ def verify_execution_result( execution_arn, state_machine_arn = _start_execution( client, load_template(tmpl_name), exec_input, sfn_role ) - for _ in range(20): + for _ in range(30): execution = client.describe_execution(executionArn=execution_arn) if expected_status is None or execution["status"] == expected_status: result = _verify_result(client, execution, execution_arn) @@ -81,7 +81,7 @@ def verify_execution_result( ) iam.delete_role(RoleName=role_name) break - sleep(1 if allow_aws_request() else 0.1) + sleep(10 if allow_aws_request() else 0.1) else: client.delete_state_machine(stateMachineArn=state_machine_arn) iam.delete_role_policy(RoleName=role_name, PolicyName="allowLambdaInvoke")