From 0ed2f35258b597f9a7b2725395cbb605a6341a26 Mon Sep 17 00:00:00 2001 From: julia-zack Date: Wed, 30 Oct 2024 11:34:13 -0300 Subject: [PATCH] Correct test --- .../src/test/java/co/rsk/peg/BridgeStorageProviderTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java b/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java index bb7f684fcd..6679779c13 100644 --- a/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java +++ b/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java @@ -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 svpSpendTxWFS = new AbstractMap.SimpleEntry<>(svpSpendTxCreationHash, svpSpendTx); - bridgeStorageProvider.setSvpSpendTxWaitingForSignatures(svpSpendTxWFS); + Sha256Hash svpSpendTxCreationHash = BitcoinTestUtils.createHash(1); + bridgeStorageProvider.setSvpSpendTxHashUnsigned(svpSpendTxCreationHash); // act bridgeStorageProvider.clearSvpValues();