From e721b4a760b33e291168848c099bb9f9e7d13bca Mon Sep 17 00:00:00 2001 From: Jorge Esteban Quilcate Otoya Date: Fri, 20 Oct 2023 13:13:24 +0300 Subject: [PATCH] fixup! feat: validate index size when transforming nit: align formatting. --- .../aiven/kafka/tieredstorage/RemoteStorageManagerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/integration-test/java/io/aiven/kafka/tieredstorage/RemoteStorageManagerTest.java b/core/src/integration-test/java/io/aiven/kafka/tieredstorage/RemoteStorageManagerTest.java index a6b042e4c..bb19ea982 100644 --- a/core/src/integration-test/java/io/aiven/kafka/tieredstorage/RemoteStorageManagerTest.java +++ b/core/src/integration-test/java/io/aiven/kafka/tieredstorage/RemoteStorageManagerTest.java @@ -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) {