Skip to content

Commit 1f31512

Browse files
committed
fix TransportReplicationActionTests
1 parent 20d5dfc commit 1f31512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/action/support/replication/TransportReplicationActionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,8 +1634,8 @@ private IndexShard mockIndexShard(ShardId shardId, ClusterService clusterService
16341634
when(indexShard.getPendingPrimaryTerm()).thenAnswer(
16351635
i -> clusterService.state().metadata().getProject().getIndexSafe(shardId.getIndex()).primaryTerm(shardId.id())
16361636
);
1637-
when(indexShard.getLocalCheckpointSupplier()).thenReturn(() -> SequenceNumbers.UNASSIGNED_SEQ_NO);
1638-
when(indexShard.getLastSyncedGlobalCheckpointSupplier()).thenReturn(() -> SequenceNumbers.UNASSIGNED_SEQ_NO);
1637+
when(indexShard.getLocalCheckpointSupplier()).thenReturn(() -> 0L);
1638+
when(indexShard.getLastSyncedGlobalCheckpointSupplier()).thenReturn(() -> 0L);
16391639
ReplicationGroup replicationGroup = mock(ReplicationGroup.class);
16401640
when(indexShard.getReplicationGroup()).thenReturn(replicationGroup);
16411641
return indexShard;

0 commit comments

Comments
 (0)