Commit eed946c1 authored by QM's avatar QM Committed by vipwzw

fix autonomy test

parent 1d1c45fc
...@@ -159,7 +159,7 @@ function check_activeRule() { ...@@ -159,7 +159,7 @@ function check_activeRule() {
function testProposalRule() { function testProposalRule() {
# proposal # proposal
echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}" echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}"
update_last_header 10 update_last_header 50
proposalRuleTx proposalRuleTx
#vote #vote
...@@ -213,7 +213,7 @@ function check_activeBoard() { ...@@ -213,7 +213,7 @@ function check_activeBoard() {
function testProposalBoard() { function testProposalBoard() {
#proposal #proposal
echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}" echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}"
update_last_header 10 update_last_header 50
proposalBoardTx proposalBoardTx
#vote #vote
...@@ -253,7 +253,7 @@ function showProject_status() { ...@@ -253,7 +253,7 @@ function showProject_status() {
function testProposalProject() { function testProposalProject() {
# proposal # proposal
echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}" echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}"
update_last_header 10 update_last_header 50
proposalProjectTx proposalProjectTx
#vote #vote
...@@ -304,7 +304,7 @@ function testProposalChange() { ...@@ -304,7 +304,7 @@ function testProposalChange() {
hash=$(${Chain33Cli} send coins transfer -a 20 -n test -t "${autonomyAddr}" -k "${arrayKey[21]}") hash=$(${Chain33Cli} send coins transfer -a 20 -n test -t "${autonomyAddr}" -k "${arrayKey[21]}")
check_tx "${Chain33Cli}" "${hash}" check_tx "${Chain33Cli}" "${hash}"
update_last_header 10 update_last_header 50
proposalChangeTx "${changeAddr}" "${arrayKey[20]}" proposalChangeTx "${changeAddr}" "${arrayKey[20]}"
ret=$(${Chain33Cli} autonomy showActiveBoard | jq -r ".boards[20]") ret=$(${Chain33Cli} autonomy showActiveBoard | jq -r ".boards[20]")
...@@ -341,16 +341,16 @@ function testProposalChange() { ...@@ -341,16 +341,16 @@ function testProposalChange() {
function testProposalTerminate() { function testProposalTerminate() {
#test terminate #test terminate
echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}" echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}"
update_last_header 10 update_last_header 50
proposalRuleTx proposalRuleTx
update_last_header 10 update_last_header 50
proposalBoardTx proposalBoardTx
update_last_header 10 update_last_header 50
proposalProjectTx proposalProjectTx
update_last_header 10 update_last_header 50
proposalChangeTx "${changeAddr2}" "${arrayKey[21]}" proposalChangeTx "${changeAddr2}" "${arrayKey[21]}"
block_wait "${Chain33Cli}" 850 block_wait "${Chain33Cli}" 850
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment