rpuch commented on code in PR #1556:
URL: https://github.com/apache/ignite-3/pull/1556#discussion_r1083932748
##########
modules/table/src/test/java/org/apache/ignite/internal/table/distributed/raft/snapshot/outgoing/OutgoingSnapshotCommonTest.java:
##########
@@ -76,12 +64,13 @@ void returnsKeyFromStorage() {
@Test
void sendsSnapshotMeta() {
- when(mvPartitionStorage.lastAppliedIndex()).thenReturn(100L);
- lenient().when(mvPartitionStorage.lastAppliedTerm()).thenReturn(3L);
- when(txStateStorage.lastAppliedIndex()).thenReturn(100L);
- lenient().when(txStateStorage.lastAppliedTerm()).thenReturn(3L);
+ lenient().when(partitionAccess.minLastAppliedIndex()).thenReturn(90L);
Review Comment:
Then how about removing the whole line? If Mockito says the stubbing is not
used, then we probably don't need it at all, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]