Skip to content

Commit

Permalink
Service Timeout Policy Live Test Failure Fix (#34678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimrabab committed Apr 28, 2023
1 parent 6db1030 commit 3267b8b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,12 +1222,11 @@ class ServiceAPITest extends APISpec {
def blobClient = blobContainerClient.getBlobClient(generateBlobName())

// testing with large dataset that is guaranteed to take longer than the specified timeout (1 second)
def randomData = getRandomByteArray(8 * Constants.MB)
def randomData = getRandomByteArray(256 * Constants.MB)
def input = new ByteArrayInputStream(randomData)
def pto = new ParallelTransferOptions().setMaxSingleUploadSizeLong(Constants.MB)

when:
blobClient.uploadWithResponse(new BlobParallelUploadOptions(input).setParallelTransferOptions(pto), null, null)
blobClient.uploadWithResponse(new BlobParallelUploadOptions(input), null, null)

then:
def e = thrown(BlobStorageException)
Expand Down

0 comments on commit 3267b8b

Please sign in to comment.