From f86ce02912d0ee4ddeda1a8e7b103bae84f95320 Mon Sep 17 00:00:00 2001 From: shaitao <228164917@qq.com> Date: Fri, 23 Dec 2022 10:36:13 +0800 Subject: [PATCH] increase interval --- tools/devnet/env.sh | 2 +- tools/regression/triple_masking/test_triple_masking.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/devnet/env.sh b/tools/devnet/env.sh index a7be04db9..efba9b904 100755 --- a/tools/devnet/env.sh +++ b/tools/devnet/env.sh @@ -7,7 +7,7 @@ NC='\033[0m' # default environment values DEFAULT_BIN_CFG="release" -DEFAULT_BLOCK_INTERVAL="2" +DEFAULT_BLOCK_INTERVAL="17" DEFAULT_ENDPOINT="http://0.0.0.0" # binary config diff --git a/tools/regression/triple_masking/test_triple_masking.sh b/tools/regression/triple_masking/test_triple_masking.sh index 5017c8f04..c940e52bb 100755 --- a/tools/regression/triple_masking/test_triple_masking.sh +++ b/tools/regression/triple_masking/test_triple_masking.sh @@ -9,13 +9,17 @@ source $TRIPLE_MASKING_SCRIPTS_PATH/env.sh # declare sleep intervals let TM_SLEEP=($BLOCK_INTERVAL + 5) # If breaking, increase the sleep time +echo "BLOCK_INTERVAL=${BLOCK_INTERVAL}s, sleep time=${TM_SLEEP}s" + # generate keys and create test bars source $TRIPLE_MASKING_SCRIPTS_PATH/gen_keys_test-bars.sh - # Run Tests echo -e "${YEL}Run test cases and verifying results${NC}" +echo "Sleep ${TM_SLEEP}" +sleep ${TM_SLEEP} + echo "\n ***** Verifying balances ***** " python3 "$REGRESSION_PATH"/evm.py verify-balance --sec-key $BAR_SEC_KEY --amount 840000000 if [ $? != 0 ]; @@ -27,7 +31,7 @@ echo # test eth to fra echo -e "\n ***** Test transfer from eth to fra prefix address *****" $BIN/fn transfer --amount 209990000 --asset FRA -T $ED_ADDRESS -sleep $BLOCK_INTERVAL +sleep $TM_SLEEP echo "\n ***** Verifying balances ***** " python3 $REGRESSION_PATH/evm.py verify-balance --sec-key $ED_SEC_KEY --amount 210010000