diff options
Diffstat (limited to 'src/testing/test_merchant_order_creation.sh')
-rwxr-xr-x | src/testing/test_merchant_order_creation.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh index 5fc7ee19..ce8507eb 100755 --- 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 |