Skip to content

Commit

Permalink
fix UT to remove the verify for final method
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
  • Loading branch information
kaushalmahi12 committed Jul 30, 2024
1 parent 4940dcf commit 1d1e923
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public void testMessageReceivedForSearchWorkload() throws Exception {
QueryGroupTask spyTask = getSpyTask();

sut.messageReceived(request, mock(TransportChannel.class), spyTask);

verify(spyTask, times(1)).setQueryGroupId(threadPool.getThreadContext());
assertTrue(sut.isSearchWorkloadRequest(spyTask));
}

public void testMessageReceivedForNonSearchWorkload() throws Exception {
Expand Down

0 comments on commit 1d1e923

Please sign in to comment.