Skip to content

Commit 795e263

Browse files
committed
fix crt resource management test - wrong final part content-range
1 parent 4d457a8 commit 795e263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/crt/S3CrtClientGetObjectResourceManagementTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private static void stubGetObjectCalls() {
144144
}
145145

146146
// final part
147-
String contentRange = "bytes " + PART_SIZE * numOfParts + "-" + (totalContentSize - 1) + "/" + totalContentSize;
147+
String contentRange = "bytes " + PART_SIZE * (numOfParts - 1) + "-" + (totalContentSize - 1) + "/" + totalContentSize;
148148
String range = "bytes=" + PART_SIZE * (numOfParts - 1) + "-" + (totalContentSize - 1);
149149
stubFor(get(anyUrl()).withHeader("Range", equalTo(range)).willReturn(aResponse().withStatus(200)
150150
.withHeader("content-length", String.valueOf(finalPartSize))

0 commit comments

Comments
 (0)