Skip to content

Commit c13e611

Browse files
authored
Merge pull request #12768 from ethereum/euler-timeout-fix-attempt-2
Euler timeout fix: switch to TEST_TIMEOUT variable
2 parents 4263b89 + b5caa77 commit c13e611

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/externalTests/euler.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ BINARY_PATH="$2"
3232
SELECTED_PRESETS="$3"
3333

3434
function compile_fn { npm run compile; }
35-
function test_fn { npx --no hardhat --no-compile test; }
35+
function test_fn {
36+
# The default timeout of 20000 ms is too short for unoptimized code (https://github.com/ethereum/solidity/pull/12765).
37+
TEST_TIMEOUT=100000 npx --no hardhat --no-compile test
38+
}
3639

3740
function euler_test
3841
{
@@ -63,8 +66,6 @@ function euler_test
6366
force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH"
6467
force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")"
6568
force_hardhat_unlimited_contract_size "$config_file"
66-
# Workaround for the timeout that's too short for unoptimized code (https://github.com/ethereum/solidity/pull/12765)
67-
force_hardhat_timeout "$config_file" "" 100000
6869
npm install
6970

7071
replace_version_pragmas

0 commit comments

Comments
 (0)