Skip to content

Commit

Permalink
fix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsocha2 committed Mar 3, 2023
1 parent de48507 commit 1cb95cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit/object/test_chunked_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,9 @@ def test_resume_with_upload_random_duration(test_file, mock_upload_session):
# pylint: disable-msg=unused-argument
def upload_mock_func(part_bytes, offset, total_size):
value = upload_results.pop(0)
time.sleep(randint(0, 1))
if isinstance(value, Exception):
time.sleep(randint(0, 1))
raise value
time.sleep(randint(0, 1))
return value

file_size = 7
Expand Down

0 comments on commit 1cb95cb

Please sign in to comment.