Skip to content

Commit

Permalink
feat(config): add all verifications to update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
apancorb authored and marcos-iov committed Aug 7, 2024
1 parent 0a7b343 commit 63a2edd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/co/rsk/federate/BtcToRskClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,7 @@ void updateBridge_whenUpdateBridgeConfigAreFalse_shouldNotCallAny() throws Excep
}

@Test
void updateBridge_noUpdateBridgeConfigDefined_shouldCallSendUpdateCollections() throws Exception {
void updateBridge_noUpdateBridgeConfigDefined_shouldTriggerBridgeUpdates() throws Exception {
NodeBlockProcessor nodeBlockProcessor = mock(NodeBlockProcessor.class);
when(nodeBlockProcessor.hasBetterBlockToSync()).thenReturn(false);

Expand Down Expand Up @@ -2534,6 +2534,9 @@ void updateBridge_noUpdateBridgeConfigDefined_shouldCallSendUpdateCollections()

btcToRskClient.updateBridge();

verify(btcToRskClient).updateBridgeBtcBlockchain();
verify(btcToRskClient).updateBridgeBtcCoinbaseTransactions();
verify(btcToRskClient).updateBridgeBtcTransactions();
verify(federatorSupport).sendUpdateCollections();
}

Expand Down

0 comments on commit 63a2edd

Please sign in to comment.