From fb17d0c4c9595347b2fe48ad2b95c8d77e8edf3a Mon Sep 17 00:00:00 2001 From: cojenco Date: Mon, 1 Jul 2024 16:28:48 -0700 Subject: [PATCH] test: enable retries for blobwriter tests (#1298) --- tests/system/test_fileio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system/test_fileio.py b/tests/system/test_fileio.py index 79e0ab7da..21c197eee 100644 --- a/tests/system/test_fileio.py +++ b/tests/system/test_fileio.py @@ -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()) @@ -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)