Skip to content

Commit

Permalink
add suggested test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aalam committed Sep 18, 2024
1 parent df3263c commit 79af9d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integ/test_multithreading.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,9 @@ def put_and_get_file(upload_file_path, download_dir):
with ThreadPoolExecutor(max_workers=10) as executor:
for file_path in resources_files:
executor.submit(put_and_get_file, file_path, download_dir)

if not use_stream:
# assert all files are downloaded
assert set(os.listdir(download_dir)) == {
os.path.basename(file_path) for file_path in resources_files
}

0 comments on commit 79af9d7

Please sign in to comment.