Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Admin: Increase SFN test duration #8437

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading