Skip to content

Commit 24b087e

Browse files
[Storage] Fixed and increased retry async copy allowance (#45087)
1 parent 3ea04d3 commit 24b087e

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ def _wait_for_async_copy(self, blob):
147147
props = blob.get_blob_properties()
148148
while props.copy.status == 'pending':
149149
count = count + 1
150-
if count > 10:
151-
self.fail('Timed out waiting for async copy to complete.')
150+
if count > 15:
151+
pytest.fail('Timed out waiting for async copy to complete.')
152152
self.sleep(6)
153153
props = blob.get_blob_properties()
154154
return props

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ async def _wait_for_async_copy(self, blob):
154154
props = await blob.get_blob_properties()
155155
while props.copy.status == 'pending':
156156
count = count + 1
157-
if count > 10:
158-
self.fail('Timed out waiting for async copy to complete.')
157+
if count > 15:
158+
pytest.fail('Timed out waiting for async copy to complete.')
159159
self.sleep(6)
160160
props = await blob.get_blob_properties()
161161
return props

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def _wait_for_async_copy(self, blob):
8585
props = blob.get_blob_properties()
8686
while props.copy.status == 'pending':
8787
count = count + 1
88-
if count > 10:
89-
self.fail('Timed out waiting for async copy to complete.')
88+
if count > 15:
89+
pytest.fail('Timed out waiting for async copy to complete.')
9090
self.sleep(6)
9191
props = blob.get_blob_properties()
9292
return props

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ async def _wait_for_async_copy(self, blob):
9191
props = await blob.get_blob_properties()
9292
while props.copy.status == 'pending':
9393
count = count + 1
94-
if count > 10:
95-
self.fail('Timed out waiting for async copy to complete.')
94+
if count > 15:
95+
pytest.fail('Timed out waiting for async copy to complete.')
9696
self.sleep(6)
9797
props = await blob.get_blob_properties()
9898
return props

sdk/storage/azure-storage-file-share/tests/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _wait_for_async_copy(self, share_name, file_path):
135135
properties = file_client.get_file_properties()
136136
while properties.copy.status != 'success':
137137
count = count + 1
138-
if count > 10:
138+
if count > 15:
139139
pytest.fail('Timed out waiting for async copy to complete.')
140140
self.sleep(6)
141141
properties = file_client.get_file_properties()

sdk/storage/azure-storage-file-share/tests/test_file_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async def _wait_for_async_copy(self, share_name, file_path):
150150
properties = await file_client.get_file_properties()
151151
while properties.copy.status != 'success':
152152
count = count + 1
153-
if count > 10:
153+
if count > 15:
154154
pytest.fail('Timed out waiting for async copy to complete.')
155155
self.sleep(6)
156156
properties = await file_client.get_file_properties()

0 commit comments

Comments
 (0)