merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 973f634c5e2a2d905a97c052a223dd1bcf52ce8a
parent 7c3218472c0f4ba62e5044e97ce5bf18c3a08861
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 18 Sep 2022 11:13:47 +0200

-test for at least one currency, instead of exactly one

Diffstat:
Msrc/testing/test_merchant_order_creation.sh | 15++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh @@ -28,15 +28,12 @@ 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" -# FIXME-CURRENCY: given the builtin exchange in the wallet, that's very -# likely to have multiple currencies, hence the check below fails the test. -# Remove, if it's now obsolete. -#CURRENCY_COUNT=$(taler-wallet-cli --wallet-db=$WALLET_DB balance | jq '.balances|length') -#if [ "$CURRENCY_COUNT" != "1" ] -#then -# echo 'should have one currency, withdrawal failed. check log.' -# exit 1 -#fi +CURRENCY_COUNT=$(taler-wallet-cli --wallet-db=$WALLET_DB balance | jq '.balances|length') +if [ "$CURRENCY_COUNT" = "0" ] +then + echo 'should have at least one currency, withdrawal failed. check log.' + exit 1 +fi # # CREATE INSTANCE FOR TESTING