Skip to content

Commit

Permalink
SKYEDEN-3020 | resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinBobinski committed Jan 10, 2025
1 parent f87be3a commit 4e2865e
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,20 @@ public void shouldMoveOffsetNearGivenTimestamp(boolean suspendedSubscription)
.retransmit(
topic.getQualifiedName(), subscription.getName(), retransmissionDate, false);

if (suspendedSubscription) {
hermes.api().activateSubscription(topic, subscription.getName());
hermes.api().waitUntilSubscriptionActivated(topic.getQualifiedName(), subscription.getName());
}

// then
response.expectStatus().isOk();
// Check if Kafka committed offsets were moved on retransmission
assertThat(
hermes
.api()
.calculateCommittedMessages(topic.getQualifiedName(), subscription.getName()))
.isLessThan(commitedMessages);
response.expectStatus().isOk();

if (suspendedSubscription) {
hermes.api().activateSubscription(topic, subscription.getName());
hermes.api().waitUntilSubscriptionActivated(topic.getQualifiedName(), subscription.getName());
}

messages2.forEach(subscriber::waitUntilReceived);
hermes.api().waitUntilConsumerCommitsOffset(topic.getQualifiedName(), subscription.getName());
assertThat(
Expand Down

0 comments on commit 4e2865e

Please sign in to comment.