Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
  • Loading branch information
Neeharika-Sompalli committed May 23, 2023
1 parent 8c1fe8a commit 5679ce4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,8 @@ void discardsOlderMinorVersionEvents() throws InvalidProtocolBufferException {
given(platformTxn.getConsensusTimestamp()).willReturn(timeStamp);

subject.incorporateConsensusTxn(
platformTxn, member, SerializableSemVers.forHapiAndHedera("0.2.3", "0.2.1-pre+1"));
platformTxn, member, SerializableSemVers.forHapiAndHedera("0.38.1", "0.38.1-pre+1"));
verify(recordCache).setStaleTransaction(payer, accessor, timeStamp, member);

subject.incorporateConsensusTxn(
platformTxn, member, SerializableSemVers.forHapiAndHedera("0.38.3", "0.38.1-pre+1"));
verify(recordCache, times(2)).setStaleTransaction(payer, accessor, timeStamp, member);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import com.swirlds.common.system.events.ConsensusEvent;
import com.swirlds.common.system.transaction.ConsensusTransaction;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiConsumer;
import org.apache.commons.lang3.tuple.Pair;
Expand All @@ -47,6 +46,7 @@ class ProcessLogicTest {

@Mock
private ProcessLogic subject;

private final SoftwareVersion eventVersion = SEMANTIC_VERSIONS.deployedSoftwareVersion();

@BeforeEach
Expand Down

0 comments on commit 5679ce4

Please sign in to comment.