Skip to content

Commit 73d0b36

Browse files
authored
[Blob]Edit Test for Single Thread Substream Retry (#18206)
Set block size to a smaller value
1 parent 6025370 commit 73d0b36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/storage/azure-storage-blob/tests/test_largest_block_blob.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
LARGEST_BLOCK_SIZE = 4000 * 1024 * 1024
2929
LARGEST_SINGLE_UPLOAD_SIZE = 5000 * 1024 * 1024
3030

31+
LARGE_BLOCK_SIZE = 100 * 1024 * 1024
32+
3133
# ------------------------------------------------------------------------------
3234
if platform.python_implementation() == 'PyPy':
3335
pytest.skip("Skip tests for Pypy", allow_module_level=True)
@@ -212,7 +214,7 @@ def test_create_largest_blob_from_path(self, resource_group, location, storage_a
212214
def test_substream_for_single_thread_upload_large_block(self):
213215
FILE_PATH = 'largest_blob_from_path.temp.{}.dat'.format(str(uuid.uuid4()))
214216
with open(FILE_PATH, 'wb') as stream:
215-
largeStream = LargeStream(LARGEST_BLOCK_SIZE, 100 * 1024 * 1024)
217+
largeStream = LargeStream(LARGE_BLOCK_SIZE, 4 * 1024 * 1024)
216218
chunk = largeStream.read()
217219
while chunk:
218220
stream.write(chunk)

0 commit comments

Comments
 (0)