Commit 96a42335 authored by yingqiumin@126.com's avatar yingqiumin@126.com

improve rpc test

parent 4efd443d
...@@ -24,7 +24,8 @@ echo_rst() { ...@@ -24,7 +24,8 @@ echo_rst() {
} }
chain33_Http() { chain33_Http() {
local body=$(curl -ksd "$1" "$2") local body
body=$(curl -ksd "$1" "$2")=$(curl -ksd "$1" "$2")
RETURN_RESP=$(jq -r "$5" <<<"$body") RETURN_RESP=$(jq -r "$5" <<<"$body")
echo "#response: $body" "$RETURN_RESP" echo "#response: $body" "$RETURN_RESP"
ok=$(echo "$body" | jq -r "$3") ok=$(echo "$body" | jq -r "$3")
......
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