Skip to content

Commit

Permalink
Admin: Increase SFN test duration (#8437)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Dec 26, 2024
1 parent 0b2b687 commit 5ab97e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests_real_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_stepfunctions/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
Expand Down

0 comments on commit 5ab97e5

Please sign in to comment.