From 8a4e24925aa1a1b24c5d5467e8d65aef46c493d9 Mon Sep 17 00:00:00 2001 From: Emmanuel Odeke Date: Fri, 18 Aug 2017 22:50:10 +0100 Subject: [PATCH] Fixed tests/cli/rest.sh for checking accounts --- Makefile | 1 + tests/cli/rest.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4fbf32ae1..ee767dc6c7 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,7 @@ test_cli: tests/cli/shunit2 ./tests/cli/roles.sh ./tests/cli/counter.sh ./tests/cli/restart.sh + ./tests/cli/rest.sh ./tests/cli/ibc.sh test_tutorial: docs/guide/shunit2 diff --git a/tests/cli/rest.sh b/tests/cli/rest.sh index 1ed86e7988..06ae7fc769 100755 --- a/tests/cli/rest.sh +++ b/tests/cli/rest.sh @@ -39,7 +39,7 @@ restAccount() { assertNotNull "line=${LINENO}, address required" "$1" ACCT=$(curl ${URL}/query/account/sigs:$1 2>/dev/null) if [ -n "$DEBUG" ]; then echo $ACCT; echo; fi - assertEquals "line=${LINENO}, proper money" "$2" $(echo $ACCT | jq .coins[0].amount) + assertEquals "line=${LINENO}, proper money" "$2" $(echo $ACCT | jq .data.coins[0].amount) return $? }