Skip to content

Commit

Permalink
fix UT failures
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <[email protected]>
  • Loading branch information
kaushalmahi12 committed Jan 23, 2025
1 parent 745bd3a commit 6e5f44d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ private <T extends QueryGroupTask> T createMockTask(Class<T> type, long cpuUsage
when(task.getTotalResourceUtilization(ResourceStats.MEMORY)).thenReturn(heapUsage);
when(task.getStartTimeNanos()).thenReturn((long) 0);
when(task.getElapsedTime()).thenReturn(clock.getTime());
when(task.isEligibleForTracking()).thenReturn(true);

AtomicBoolean isCancelled = new AtomicBoolean(false);
doAnswer(invocation -> {
Expand Down

0 comments on commit 6e5f44d

Please sign in to comment.