From b5caa774826492e8c902d64af2a900ea1f8315a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 10 Mar 2022 14:52:51 +0100 Subject: [PATCH] euler: Use project's own TEST_TIMEOUT var for changing the timeout instead of mocha settings --- test/externalTests/euler.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/externalTests/euler.sh b/test/externalTests/euler.sh index 6a73f00e5..39283bcd5 100755 --- a/test/externalTests/euler.sh +++ b/test/externalTests/euler.sh @@ -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