Skip to content

Commit

Permalink
fixup! feat: validate index size when transforming
Browse files Browse the repository at this point in the history
nit: align formatting.
  • Loading branch information
jeqo committed Oct 20, 2023
1 parent 3b4bf26 commit e721b4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,16 +493,16 @@ void testTransformingIndexes(final boolean encryption) {

final var segmentIndexBuilder = new SegmentIndexesV1Builder();
final var bytes = "test".getBytes();
assertThat(rsm.transformIndex(
final var is = rsm.transformIndex(
IndexType.OFFSET,
new ByteArrayInputStream(bytes),
bytes.length,
encryptionMetadata,
segmentIndexBuilder
)).isNotEmpty();
);
assertThat(is).isNotEmpty();
}


@ParameterizedTest
@ValueSource(booleans = {true, false})
void testTransformingEmptyIndexes(final boolean encryption) {
Expand Down

0 comments on commit e721b4a

Please sign in to comment.