Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sushantmane committed Oct 30, 2023
1 parent 73ed929 commit 92244e1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,7 @@ public void testTimeoutOnGettingMaxOffset() throws IOException {
PubSubTopicPartition pubSubTopicPartition = new PubSubTopicPartitionImpl(topic, 0);
// Mock an admin client to pass topic existence check
PubSubAdminAdapter mockPubSubAdminAdapter = mock(PubSubAdminAdapter.class);
doReturn(true).when(mockPubSubAdminAdapter)
.containsTopicWithPartitionCheckExpectationAndRetry(eq(pubSubTopicPartition), anyInt(), eq(true));
doReturn(true).when(mockPubSubAdminAdapter).containsTopicWithExpectationAndRetry(eq(topic), anyInt(), eq(true));
PubSubConsumerAdapter mockPubSubConsumer = mock(PubSubConsumerAdapter.class);
doThrow(new PubSubOpTimeoutException("Timed out while fetching end offsets")).when(mockPubSubConsumer)
.endOffsets(any(), any());
Expand Down

0 comments on commit 92244e1

Please sign in to comment.