Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Mar 13, 2024
1 parent 7646929 commit 3a8588d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ public void testGetWithBytesRange() {
handleRequest(handler, "GET", blobPath, BytesArray.EMPTY, bytesRangeHeader(0, end))
);

var start = randomFrom(blobBytes.length(), Integer.MAX_VALUE - 1);
var start = randomIntBetween(blobBytes.length(), Integer.MAX_VALUE - 1);
end = randomIntBetween(start, Integer.MAX_VALUE);
assertEquals(
"Invalid Range: bytes=" + start + '-' + end,
new TestHttpResponse(RestStatus.REQUESTED_RANGE_NOT_SATISFIED, BytesArray.EMPTY, TestHttpExchange.EMPTY_HEADERS),
handleRequest(handler, "GET", blobPath, BytesArray.EMPTY, bytesRangeHeader(start, end))
);

start = randomFrom(2, Integer.MAX_VALUE - 1);
start = randomIntBetween(2, Integer.MAX_VALUE - 1);
end = randomIntBetween(0, start - 1);
assertEquals(
"Weird Valid Range: bytes=" + start + '-' + end,
Expand Down

0 comments on commit 3a8588d

Please sign in to comment.