diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-20 15:58:04 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-20 15:58:04 -0300 |
commit | 966df837026323e549e482c807ee1edcce9b3dd0 (patch) | |
tree | 9280e5c435c881a698b9b620df35581a6910c368 /src | |
parent | 33593dd6b7c3f95ca555b904cf9c4cecfc450b28 (diff) |
add check in the test
Diffstat (limited to 'src')
-rwxr-xr-x | src/testing/test_merchant_order_creation.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh index 0b629426..dfe1759c 100755 --- a/src/testing/test_merchant_order_creation.sh +++ b/src/testing/test_merchant_order_creation.sh @@ -18,6 +18,13 @@ taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'withdrawTestBalance' taler-wallet-cli --wallet-db=$WALLET_DB run-until-done 2>wallet-withdraw-finish-1.err >wallet-withdraw-finish-1.out echo " OK" +CURRENCY_COUNT=$(taler-wallet-cli balance | jq '.balances|length') +if [ "$CURRENCY_COUNT" != "1" ] +then + echo 'should have one currency, withdrawal failed. check log.' + exit 1 +fi + # # CREATE INSTANCE FOR TESTING # |