Skip to content

Commit

Permalink
feat(federate): remove unit tests verifying if proposed fed addr is b…
Browse files Browse the repository at this point in the history
…eing called to check if proposed fed exists
  • Loading branch information
apancorb committed Oct 31, 2024
1 parent 9342f3a commit 11174e5
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,22 +394,6 @@ void getProposedFederation_whenProposedFederationSizeIsNonExistent_shouldReturnE
// Act & Assert
assertEquals(Optional.empty(), federationProvider.getProposedFederation());
verify(federatorSupportMock).getProposedFederationSize();
verify(federatorSupportMock).getProposedFederationAddress();
}

@Test
void getProposedFederation_whenProposedFederationAddressDoesNotExist_shouldReturnEmptyOptional() {
// Arrange
ActivationConfig.ForBlock configMock = mock(ActivationConfig.ForBlock.class);
when(configMock.isActive(RSKIP419)).thenReturn(true);
when(federatorSupportMock.getConfigForBestBlock()).thenReturn(configMock);
when(federatorSupportMock.getProposedFederationSize())
.thenReturn(Optional.of(9));

// Act & Assert
assertEquals(Optional.empty(), federationProvider.getProposedFederation());
verify(federatorSupportMock).getProposedFederationSize();
verify(federatorSupportMock).getProposedFederationAddress();
}

@Test
Expand Down

0 comments on commit 11174e5

Please sign in to comment.