Skip to content

Commit

Permalink
Fix MockReceiverTest#consumerMethods failure with reactor-core 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
chemicL committed Oct 31, 2024
1 parent 36a4a38 commit 5bfe180
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
import java.util.function.Function;
import java.util.regex.Pattern;

import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
Expand Down Expand Up @@ -1188,7 +1189,8 @@ public void consumerMethods() throws Exception {
testConsumerMethod(c -> {
Collection<TopicPartition> partitions = Collections.singleton(new TopicPartition(topic, 1));
c.pause(partitions);
assertEquals(partitions, c.paused());
// Due to backpressure other partitions can be paused at the same moment in time
assertThat(c.paused()).containsAll(partitions);
c.resume(partitions);
});
testConsumerMethod(c -> {
Expand Down

0 comments on commit 5bfe180

Please sign in to comment.