Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix triple masking test. #776

Open
wants to merge 1 commit into
base: develop-ready
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/devnet/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions tools/regression/triple_masking/test_triple_masking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand All @@ -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
Expand Down