Skip to content

Commit

Permalink
[Storage] Attempt to fix flaky retry test with larger blob (Azure#25781)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalauzon-msft authored and wonder6845 committed Aug 23, 2022
1 parent a0328b0 commit fd69ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-blob/tests/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_retry_on_socket_timeout(self, **kwargs):
# Upload a blob that can be downloaded to test read timeout
service = self._create_storage_service(BlobServiceClient, storage_account_name, storage_account_key)
container = service.create_container(container_name)
container.upload_blob(blob_name, b'a' * 5 * 1025, overwrite=True)
container.upload_blob(blob_name, b'a' * 1024 * 1024, overwrite=True)

retry = LinearRetry(backoff=1, random_jitter_range=1)
retry_transport = RetryRequestTransport(connection_timeout=11, read_timeout=0.000000000001)
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-blob/tests/test_retry_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def test_retry_on_socket_timeout(self, **kwargs):
# Upload a blob that can be downloaded to test read timeout
service = self._create_storage_service(BlobServiceClient, storage_account_name, storage_account_key)
container = await service.create_container(container_name)
await container.upload_blob(blob_name, b'a' * 5 * 1025, overwrite=True)
await container.upload_blob(blob_name, b'a' * 1024 * 1024, overwrite=True)

retry = LinearRetry(backoff=1, random_jitter_range=1)
retry_transport = AiohttpRetryTestTransport(connection_timeout=11, read_timeout=0.000000000001)
Expand Down

0 comments on commit fd69ccf

Please sign in to comment.