Skip to content

Commit 265848e

Browse files
authored
[Test] Fix testContentRangeValidation (elastic#128188)
Ensure sufficent bytes for the start position.
1 parent 4e7b99c commit 265848e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repository-s3/src/test/java/org/elasticsearch/repositories/s3/S3RetryingInputStreamTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void testReadAfterBlobLengthThrowsRequestedRangeNotSatisfiedException() t
120120
}
121121

122122
public void testContentRangeValidation() throws IOException {
123-
final byte[] bytes = randomByteArrayOfLength(between(100, 200));
123+
final byte[] bytes = randomByteArrayOfLength(between(101, 200));
124124
final int position = between(0, 100);
125125
final int length = between(1, 100);
126126
try (var stream = createInputStream(bytes, position, length)) {

0 commit comments

Comments
 (0)