From 2ed15be66fa8969939adb14b2e926d3158f499bf Mon Sep 17 00:00:00 2001 From: Kane Wallmann Date: Tue, 20 Jul 2021 14:55:13 +1000 Subject: [PATCH] Fix broken rETH tests --- test/token/reth-tests.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/token/reth-tests.js b/test/token/reth-tests.js index 4eea40c8a..45e72eb7f 100644 --- a/test/token/reth-tests.js +++ b/test/token/reth-tests.js @@ -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) => { @@ -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); @@ -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);