Skip to content

Commit

Permalink
Changed "if" to checks for the positive case.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanieliov authored and marcos-iov committed May 11, 2023
1 parent 76306b4 commit cccfc25
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ void test_processFundsMigration(
bridgeSupport.updateCollections(updateCollectionsTx);

Assertions.assertEquals(activations.isActive(ConsensusRule.RSKIP146)? 0 : 1, provider.getPegoutsWaitingForConfirmations().getEntriesWithoutHash().size());
Assertions.assertEquals(activations.isActive(ConsensusRule.RSKIP146) ? 1 : 0, provider.getPegoutsWaitingForConfirmations().getEntriesWithHash().size());
Assertions.assertEquals(activations.isActive(ConsensusRule.RSKIP146)? 1 : 0, provider.getPegoutsWaitingForConfirmations().getEntriesWithHash().size());

Assertions.assertTrue(sufficientUTXOsForMigration.isEmpty());
if (!inMigrationAge){
verify(provider, times(1)).setOldFederation(null);
} else {
if (inMigrationAge){
verify(provider, never()).setOldFederation(null);
} else {
verify(provider, times(1)).setOldFederation(null);
}

if (activations.isActive(ConsensusRule.RSKIP146)) {
Expand Down

0 comments on commit cccfc25

Please sign in to comment.