Skip to content

Commit

Permalink
just added a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Pikora authored and Jan Pikora committed Jan 11, 2024
1 parent 7c0185c commit 4bd22df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/01_03_52-disable_lock_whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ let MINIMUM_PEGIN_VALUE_IN_BTC;
let MINIMUM_PEGIN_VALUE_IN_SATS;
let WHITELIST_DISABLE_BLOCK_DELAY;
let FEE_IN_SATOSHI;
const DELAY_SET_SUCCSSFULY = 1;

const fulfillRequirementsToRunAsSingleTestFile = async () => {
await rskUtils.activateFork(Runners.common.forks.papyrus200);
Expand Down Expand Up @@ -70,7 +71,7 @@ describe('Disable whitelisting', function() {
const unlocked = await rskUtils.getUnlockedAddress(rskTxHelper, WHITELIST_CHANGE_PK, WHITELIST_CHANGE_ADDR);
expect(unlocked).to.be.true;
const disableLockWhitelistMethod = bridge.methods.setLockWhitelistDisableBlockDelay(WHITELIST_DISABLE_BLOCK_DELAY);
const disableResultCallback = (disableResult) => expect(Number(disableResult)).to.equal(1);
const disableResultCallback = (disableResult) => expect(Number(disableResult)).to.equal(DELAY_SET_SUCCSSFULY);
await rskUtils.sendTxWithCheck(rskTxHelper, disableLockWhitelistMethod, WHITELIST_CHANGE_ADDR, disableResultCallback);

await btcTxHelper.mine(WHITELIST_DISABLE_BLOCK_DELAY / 2);
Expand Down

0 comments on commit 4bd22df

Please sign in to comment.