elementfi: Bypass expiration check that won't pass due to test settings

This commit is contained in:
Kamil Śliwak 2022-02-15 12:43:30 +01:00
parent 7a5be4a063
commit ccbc865beb

View File

@ -85,6 +85,10 @@ function elementfi_test
sed -i 's|bytes32(uint256(pool))|bytes32(uint256(uint160(pool)))|g' vault/PoolRegistry.sol
popd
# The test suite uses forked mainnet and an expiration period that's too short.
# TODO: Remove when https://github.com/element-fi/elf-contracts/issues/243 is fixed.
sed -i 's|^\s*require(_expiration - block\.timestamp < _unitSeconds);\s*$||g' contracts/ConvergentCurvePool.sol
# Several tests fail unless we use the exact versions hard-coded in package-lock.json
#neutralize_package_lock