Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Sep 29, 2023
1 parent ff1d775 commit beecdf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smart_open/tests/test_azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def test_write_blob_client(self):

def test_abort_upload(self):
"""Does aborted upload skip commit_block_list?"""
test_string = b"42"
test_string = b"42" * 42
blob_name = "test_abort_upload_%s" % BLOB_NAME

container_client = CLIENT.get_container_client(CONTAINER_NAME)
Expand All @@ -631,7 +631,7 @@ def test_abort_upload(self):
with smart_open.open(
"azure://%s/%s" % (CONTAINER_NAME, blob_name),
"wb",
transport_params={"client": blob_client},
transport_params={"client": blob_client, "min_part_size": 42},
) as fout:
fout.write(test_string)
raise ValueError
Expand Down

0 comments on commit beecdf6

Please sign in to comment.