Skip to content

Commit

Permalink
fix(ingest/s3): Fix for flaky s3 test - uploading s3 files in consist…
Browse files Browse the repository at this point in the history
…ent order (#8367)
  • Loading branch information
treff7es authored Jul 4, 2023
1 parent cfa864e commit 74ab1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/tests/integration/s3/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def s3_populate(pytestconfig, s3_resource, s3_client, bucket_names):
pytestconfig.rootpath / "tests/integration/s3/test_data/local_system/"
)
for root, _dirs, files in os.walk(test_resources_dir):
for file in files:
for file in sorted(files):
full_path = os.path.join(root, file)
rel_path = os.path.relpath(full_path, test_resources_dir)
bkt.upload_file(full_path, rel_path)
Expand Down

0 comments on commit 74ab1be

Please sign in to comment.