Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacAttack committed Dec 16, 2024
1 parent bb79435 commit 78e2724
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ public void testAfterImageConsumerSeek() throws ExecutionException, InterruptedE

Set<Integer> partitionSet = new HashSet<>();
partitionSet.add(0);

// try and do it with an empty set, this should complete immediately
veniceChangelogConsumer.seekToEndOfPush(Collections.emptySet()).get();
Mockito.verifyNoInteractions(mockInternalSeekConsumer);

veniceChangelogConsumer.seekToEndOfPush(partitionSet).get();

Mockito.verify(mockInternalSeekConsumer).subscribe(partitionSet);
Expand Down

0 comments on commit 78e2724

Please sign in to comment.