Skip to content

Commit

Permalink
chore: add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamle2 committed May 13, 2024
1 parent be8ffbe commit dbe3fda
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orai/scripts/e2e-docker-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,10 @@ if ! [[ $result =~ true ]] ; then
echo "Tests Failed"; exit 1
fi

evm_denom=$(curl --no-progress-meter http://localhost:1317/ethermint/evm/v1/params | jq '.params.evm_denom')
if ! [[ $evm_denom =~ "aorai" ]] ; then
echo "Error: EVM denom is not correct. The upgraded version is not the latest!" >&2;
echo "Tests Failed"; exit 1
fi

echo "Tests Passed"
6 changes: 6 additions & 0 deletions orai/scripts/e2e-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ if ! [[ $inflation =~ $re ]] ; then
echo "Tests Failed"; exit 1
fi

evm_denom=$(curl --no-progress-meter http://localhost:1317/ethermint/evm/v1/params | jq '.params.evm_denom')
if ! [[ $evm_denom =~ "aorai" ]] ; then
echo "Error: EVM denom is not correct. The upgraded version is not the latest!" >&2;
echo "Tests Failed"; exit 1
fi

sh $PWD/scripts/test_clock_counter_contract.sh

# send some ORAI to test eth acc for tx fees
Expand Down

0 comments on commit dbe3fda

Please sign in to comment.