Commit ea79cfed authored by vipwzw's avatar vipwzw

auto ci

parent 7ae9e8e5
...@@ -140,7 +140,7 @@ queryBalance1() { ...@@ -140,7 +140,7 @@ queryBalance1() {
ok=$(jq '(.error|not) and (.result != "")' <<<"$resp") ok=$(jq '(.error|not) and (.result != "")' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
echo_rst "$FUNCNAME" "$?" echo_rst "$FUNCNAME" "$?"
echo "$resp"|jq -r ".result" echo "$resp" | jq -r ".result"
} }
sendTransaction2() { sendTransaction2() {
...@@ -216,7 +216,7 @@ queryBalance2() { ...@@ -216,7 +216,7 @@ queryBalance2() {
[ "$ok" == true ] [ "$ok" == true ]
echo_rst "$FUNCNAME" "$?" echo_rst "$FUNCNAME" "$?"
echo "$resp"|jq -r ".result" echo "$resp" | jq -r ".result"
} }
queryBalance3() { queryBalance3() {
...@@ -228,7 +228,7 @@ queryBalance3() { ...@@ -228,7 +228,7 @@ queryBalance3() {
[ "$ok" == true ] [ "$ok" == true ]
echo_rst "$FUNCNAME" "$?" echo_rst "$FUNCNAME" "$?"
echo "$resp"|jq -r ".result" echo "$resp" | jq -r ".result"
} }
set -x set -x
...@@ -587,10 +587,8 @@ function run_test() { ...@@ -587,10 +587,8 @@ function run_test() {
#等待2个区块 #等待2个区块
block_wait 2 block_wait 2
#查询游戏状态
#查询游戏状态 guess_QueryGameByID "$eventId" 11
guess_QueryGameByID "$eventId" 11
#用户1下注 #用户1下注
guess_game_bet1 guess_game_bet1
...@@ -598,9 +596,8 @@ function run_test() { ...@@ -598,9 +596,8 @@ function run_test() {
#等待1个区块 #等待1个区块
block_wait 2 block_wait 2
#查询游戏状态 #查询游戏状态
guess_QueryGameByID "$eventId" 12 guess_QueryGameByID "$eventId" 12
#用户2下注 #用户2下注
guess_game_bet2 guess_game_bet2
...@@ -608,17 +605,16 @@ function run_test() { ...@@ -608,17 +605,16 @@ function run_test() {
#等待2个区块 #等待2个区块
block_wait 2 block_wait 2
#查询游戏状态 #查询游戏状态
guess_QueryGameByID "$eventId" 12 guess_QueryGameByID "$eventId" 12
#管理员发布结果 #管理员发布结果
guess_game_abort guess_game_abort
#等待1个区块 #等待1个区块
block_wait 2 block_wait 2
#查询游戏状态 #查询游戏状态
guess_QueryGameByID "$eventId" 14 guess_QueryGameByID "$eventId" 14
#start->bet->stop->abort #start->bet->stop->abort
#管理员创建游戏 #管理员创建游戏
......
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