Skip to content

Commit

Permalink
Rework LockingCap integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-iov committed Aug 14, 2024
1 parent 4d9e372 commit cb9d7dc
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 156 deletions.
2 changes: 1 addition & 1 deletion rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ void getLockingCap_whenLockingCapIsEmpty_shouldReturnNull() {
void increaseLockingCap() throws VMException {
// Arrange
Coin newLockingCap = constants.getInitialValue().add(Coin.SATOSHI);
Transaction tx = TransactionUtils.getTransactionFromCaller(signatureCache, LockingCapCaller.AUTHORIZED.getRskAddress());
Transaction tx = TransactionUtils.getTransactionFromCaller(signatureCache, LockingCapCaller.FIRST_AUTHORIZED.getRskAddress());
when(lockingCapSupport.increaseLockingCap(tx, newLockingCap)).thenReturn(true);
when(lockingCapSupport.getLockingCap()).thenReturn(Optional.of(newLockingCap));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import co.rsk.core.RskAddress;

public enum LockingCapCaller {
AUTHORIZED("a02db0ed94a5894bc6f9079bb9a2d93ada1917f3"),
FIRST_AUTHORIZED("a02db0ed94a5894bc6f9079bb9a2d93ada1917f3"),
SECOND_AUTHORIZED("180a7edda4e640ea5a3e495e17a1efad260c39e9"),
THIRD_AUTHORIZED("8418edc8fea47183116b4c8cd6a12e51a7e169c1"),
UNAUTHORIZED("e2a5070b4e2cb77fe22dff05d9dcdc4d3eaa6ead");

private final String rskAddress;
Expand Down
Loading

0 comments on commit cb9d7dc

Please sign in to comment.