Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ public void listConsumerLags_returnsConsumerLags() {

consumer1.subscribe(Collections.singletonList(topic1));
consumer2.subscribe(Collections.singletonList(topic2));
consumer1.poll(Duration.ofSeconds(5));
consumer2.poll(Duration.ofSeconds(5));
consumer1.poll(Duration.ofSeconds(8));
consumer2.poll(Duration.ofSeconds(8));
// After polling once, only one of the consumers will be member of the group, so we poll again
// to force the other consumer to join the group.
consumer1.poll(Duration.ofSeconds(5));
consumer2.poll(Duration.ofSeconds(5));
consumer1.poll(Duration.ofSeconds(8));
consumer2.poll(Duration.ofSeconds(8));
// commit offsets from consuming from subscribed topics
consumer1.commitSync();
consumer2.commitSync();
Expand Down