Skip to content

Commit

Permalink
[integ-tests] Fix test_build_image_custom_components failure
Browse files Browse the repository at this point in the history
When running in China, the file was not uploaded. This commit adds a minute wait between bucket creation and file upload.

Signed-off-by: Hanwen <hanwenli@amazon.com>
  • Loading branch information
hanwen-pcluste committed Aug 23, 2024
1 parent f3dc800 commit ece3cf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration-tests/tests/createami/test_createami.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def test_build_image_custom_components(
# Create S3 bucket for pre install scripts, to remove epel package if it is installed
bucket_name = s3_bucket_factory()
bucket = boto3.resource("s3", region_name=region).Bucket(bucket_name)
time.sleep(60)
bucket.upload_file(str(test_datadir / custom_script_file), "scripts/custom_script.sh")

# Get ParallelCluster AMI as base AMI
Expand Down

0 comments on commit ece3cf1

Please sign in to comment.