Skip to content

Commit

Permalink
fix failing UTs
Browse files Browse the repository at this point in the history
Signed-off-by: bansvaru <[email protected]>
  • Loading branch information
linuxpi committed Jan 30, 2024
1 parent 69b325b commit a59a276
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ private Tuple<RemoteStoreRefreshListener, RemoteStoreStatsTrackerFactory> mockIn
when(remoteStore.directory()).thenReturn(remoteStoreFilterDirectory);

// Mock indexShard.getOperationPrimaryTerm()
when(shard.getOperationPrimaryTerm()).thenReturn(indexShard.getLatestReplicationCheckpoint().getPrimaryTerm());
when(shard.getLatestReplicationCheckpoint()).thenReturn(indexShard.getLatestReplicationCheckpoint());

// Mock indexShard.routingEntry().primary()
Expand Down

0 comments on commit a59a276

Please sign in to comment.