Skip to content

Commit

Permalink
Fix test expected length
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski committed May 22, 2024
1 parent 403c0e1 commit ad82c70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void checkPartialContent(String path, long maxSize, String contentType)
new int[] {HttpServletResponse.SC_PARTIAL_CONTENT}, contentType, byteRange);
assertThat(content).isNotNull();

final long expectedLength = Math.min(byteRange[1] - byteRange[0] + 1, maxSize);
final long expectedLength = Math.min(byteRange[1] - byteRange[0] + 1, maxSize - byteRange[0]);
assertThat(content.length).isEqualTo(expectedLength);
}
}

0 comments on commit ad82c70

Please sign in to comment.