Skip to content

Commit

Permalink
Merge pull request #2837 from rsksmart/process_validation_failure
Browse files Browse the repository at this point in the history
Correct test
  • Loading branch information
marcos-iov authored Oct 30, 2024
2 parents 4697a0a + 0ed2f35 commit 38c0b3f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1218,10 +1218,8 @@ void clearSvpValues_whenSpendTxWFS_shouldClearSpendTxValues() {
@Test
void clearSvpValues_whenSpendTxHashUnsigned_shouldClearValue() {
// arrange
Keccak256 svpSpendTxCreationHash = RskTestUtils.createHash(1);
BtcTransaction svpSpendTx = new BtcTransaction(mainnetBtcParams);
Map.Entry<Keccak256, BtcTransaction> svpSpendTxWFS = new AbstractMap.SimpleEntry<>(svpSpendTxCreationHash, svpSpendTx);
bridgeStorageProvider.setSvpSpendTxWaitingForSignatures(svpSpendTxWFS);
Sha256Hash svpSpendTxCreationHash = BitcoinTestUtils.createHash(1);
bridgeStorageProvider.setSvpSpendTxHashUnsigned(svpSpendTxCreationHash);

// act
bridgeStorageProvider.clearSvpValues();
Expand Down

0 comments on commit 38c0b3f

Please sign in to comment.