You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use variable byte limits to properly test smart retry with multiple interruptions
The test expects 3 interruptions to be used. With fixed 560-byte limit, only 1
interruption occurred. Now uses:
- First interruption: 560 bytes (ensures segment 1 completes for smart retry from 543)
- Subsequent interruptions: 200 bytes (ensures 3 total interruptions with 1081-byte data)
This properly tests both:
1. Smart retry resuming from last complete segment boundary
2. Multiple network interruptions and retries
Co-authored-by: gunjansingh-msft <[email protected]>
Copy file name to clipboardExpand all lines: sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/policy/MockPartialResponsePolicy.java
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ public class MockPartialResponsePolicy implements HttpPipelinePolicy {
0 commit comments