Skip to content

Commit

Permalink
better fix for UT
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 a59a276 commit 9610d2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ private Tuple<RemoteStoreRefreshListener, RemoteStoreStatsTrackerFactory> mockIn
when(remoteStore.directory()).thenReturn(remoteStoreFilterDirectory);

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

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

0 comments on commit 9610d2d

Please sign in to comment.