Merge pull request #12768 from ethereum/euler-timeout-fix-attempt-2

Euler timeout fix: switch to TEST_TIMEOUT variable
This commit is contained in:
Daniel Kirchner 2022-03-11 12:04:05 +01:00 committed by GitHub
commit c13e611e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,10 @@ BINARY_PATH="$2"
SELECTED_PRESETS="$3"
function compile_fn { npm run compile; }
function test_fn { npx --no hardhat --no-compile test; }
function test_fn {
# The default timeout of 20000 ms is too short for unoptimized code (https://github.com/ethereum/solidity/pull/12765).
TEST_TIMEOUT=100000 npx --no hardhat --no-compile test
}
function euler_test
{
@ -63,8 +66,6 @@ function euler_test
force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH"
force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")"
force_hardhat_unlimited_contract_size "$config_file"
# Workaround for the timeout that's too short for unoptimized code (https://github.com/ethereum/solidity/pull/12765)
force_hardhat_timeout "$config_file" "" 100000
npm install
replace_version_pragmas