Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Nov 29, 2023
1 parent 6e3537a commit aeb9157
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private void call() {
PrecompiledContractArgs args = PrecompiledContractArgsBuilder.builder()
.transaction(tx)
.executionBlock(executionBlock)
.repository(track)
.repository(cacheTrack)
.blockStore(blockStore)
.receiptStore(receiptStore)
.logs(result.getLogInfoList())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import co.rsk.core.RskAddress;
import co.rsk.crypto.Keccak256;
import co.rsk.pcc.environment.Environment;
import co.rsk.pcc.environment.GetCallStackDepth;
import org.ethereum.TestUtils;
import org.ethereum.config.Constants;
import org.ethereum.config.blockchain.upgrades.ActivationConfig;
Expand All @@ -41,7 +40,6 @@

import java.math.BigInteger;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.Set;

Expand Down Expand Up @@ -203,7 +201,11 @@ void PrecompiledContractInitShouldBeCalledWithCacheTrack() {

assertTrue(executeValidTransaction(transaction, blockTxSignatureCache));

verify(precompiledContract).init(eq(transaction), eq(executionBlock), eq(cacheTrack), eq(blockStore), eq(receiptStore), any(List.class));
ArgumentCaptor<PrecompiledContractArgs> argsCaptor = ArgumentCaptor.forClass(PrecompiledContractArgs.class);

verify(precompiledContract, times(1)).init(argsCaptor.capture());

assertEquals(cacheTrack, argsCaptor.getValue().getRepository());
}

@Test
Expand Down

0 comments on commit aeb9157

Please sign in to comment.