Skip to content

Commit

Permalink
Remove unnecessary call
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhant Deshmukh <[email protected]>
  • Loading branch information
deshsidd committed Aug 28, 2024
1 parent f1aec84 commit f7ed735
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void testOnRequestEnd() throws InterruptedException {

int numberOfShards = 10;

QueryInsightsListener queryInsightsListener = new QueryInsightsListener(clusterService, queryInsightsService, false);
QueryInsightsListener queryInsightsListener = new QueryInsightsListener(clusterService, queryInsightsService);

when(searchRequest.getOrCreateAbsoluteStartMillis()).thenReturn(timestamp);
when(searchRequest.searchType()).thenReturn(searchType);
Expand Down Expand Up @@ -183,7 +183,7 @@ public void testConcurrentOnRequestEnd() throws InterruptedException {
CountDownLatch countDownLatch = new CountDownLatch(numRequests);

for (int i = 0; i < numRequests; i++) {
searchListenersList.add(new QueryInsightsListener(clusterService, queryInsightsService, false));
searchListenersList.add(new QueryInsightsListener(clusterService, queryInsightsService));
}

for (int i = 0; i < numRequests; i++) {
Expand Down

0 comments on commit f7ed735

Please sign in to comment.