Skip to content

Commit

Permalink
tests: fix ranges upper boundary, closes #754
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Jun 3, 2024
1 parent 9ca8662 commit 0281488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_tests/tests/object/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def generate_ranges(

for offset, length in file_ranges:
range_length = random.randint(RANGE_MIN_LEN, RANGE_MAX_LEN)
range_start = random.randint(offset, offset + length)
range_start = random.randint(offset, offset + length - 1)

file_ranges_to_test.append((range_start, min(range_length, storage_object.size - range_start)))

Expand Down

0 comments on commit 0281488

Please sign in to comment.