Skip to content

Commit ae7335e

Browse files
committed
re-add comment
1 parent b46acd0 commit ae7335e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/stability-tests/src/it/java/software/amazon/awssdk/stability/tests/kinesis/KinesisStabilityTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ private List<CompletableFuture<?>> generateSubscribeToShardFutures() throws Inte
187187
.startingPosition(s -> s.type(ShardIteratorType.TRIM_HORIZON)),
188188
responseHandler)
189189
.thenAccept(b -> {
190+
// Only verify data if all events have been received and the received data is not empty.
191+
// It is possible the received data is empty because there is no record at the position
192+
// event with TRIM_HORIZON.
190193
if (responseHandler.allEventsReceived && !responseHandler.receivedData.isEmpty()) {
191194
assertThat(producedData).as(responseHandler.id + " has not received all events"
192195
+ ".").containsSequence(responseHandler.receivedData);

0 commit comments

Comments
 (0)