mirror of https://github.com/apache/kafka.git
MINOR: Address occasional UnnecessaryStubbingException in StreamThreadTest (#15134)
Reviewers: Divij Vaidya <diviv@amazon.com>, Lucas Brutschy <lbrutschy@confluent.io>
This commit is contained in:
parent
ee96935c60
commit
5a0a4c5a54
|
|
@ -774,7 +774,7 @@ public class StreamThreadTest {
|
|||
mockTime
|
||||
);
|
||||
|
||||
when(consumer.poll(any())).thenReturn(ConsumerRecords.empty());
|
||||
lenient().when(consumer.poll(any())).thenReturn(ConsumerRecords.empty());
|
||||
final ConsumerGroupMetadata consumerGroupMetadata = mock(ConsumerGroupMetadata.class);
|
||||
when(consumer.groupMetadata()).thenReturn(consumerGroupMetadata);
|
||||
when(consumerGroupMetadata.groupInstanceId()).thenReturn(Optional.empty());
|
||||
|
|
|
|||
Loading…
Reference in New Issue