From 966df837026323e549e482c807ee1edcce9b3dd0 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 20 Nov 2021 15:58:04 -0300 Subject: add check in the test --- src/testing/test_merchant_order_creation.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 # -- cgit v1.2.3