Skip to content

Commit

Permalink
test: enable retries for blobwriter tests (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
cojenco authored Jul 1, 2024
1 parent ec7d303 commit fb17d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/test_fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_blobwriter_and_blobreader(
# Test BlobWriter works.
info = file_data["big"]
with open(info["path"], "rb") as file_obj:
with blob.open("wb", chunk_size=256 * 1024) as writer:
with blob.open("wb", chunk_size=256 * 1024, if_generation_match=0) as writer:
writer.write(file_obj.read(100))
writer.write(file_obj.read(256 * 1024))
writer.write(file_obj.read())
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_blobwriter_and_blobreader_text_mode(
text_data = "\n".join([base_multibyte_text_string + str(x) for x in range(100)])

# Test text BlobWriter works.
with blob.open("wt") as writer:
with blob.open("wt", if_generation_match=0) as writer:
writer.write(text_data[:100])
writer.write(text_data[100:])
blobs_to_delete.append(blob)
Expand Down

0 comments on commit fb17d0c

Please sign in to comment.