Skip to content

Commit

Permalink
Fix broken rETH tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewallmann committed Jul 20, 2021
1 parent 07b212e commit 2ed15be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/token/reth-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { transferReth } from './scenario-reth-transfer'
import { RocketDAOProtocolSettingsNetwork, RocketDepositPool, RocketNetworkBalances, RocketTokenRETH } from '../_utils/artifacts'
import { setDAOProtocolBootstrapSetting } from '../dao/scenario-dao-protocol-bootstrap';
import { withdrawValidatorBalance } from '../minipool/scenario-withdraw-validator-balance'
import { mineBlocks } from '../_utils/evm'
import { increaseTime, mineBlocks } from '../_utils/evm'

export default function() {
contract('RocketTokenRETH', async (accounts) => {
Expand Down Expand Up @@ -173,6 +173,8 @@ export default function() {
value: withdrawalBalance
});

// Wait 14 days
await increaseTime(web3, 60 * 60 * 24 * 14 + 1)
// Run the payout function now
await withdrawValidatorBalance(minipool, '0', random, false);

Expand Down Expand Up @@ -217,6 +219,8 @@ export default function() {
value: withdrawalBalance
});

// Wait 14 days
await increaseTime(web3, 60 * 60 * 24 * 14 + 1)
// Run the payout function now
await withdrawValidatorBalance(minipool, '0', random, false);

Expand Down

0 comments on commit 2ed15be

Please sign in to comment.