gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: -test for at least one currency,


From: gnunet
Subject: [taler-merchant] branch master updated: -test for at least one currency, instead of exactly one
Date: Sun, 18 Sep 2022 11:13:53 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 973f634c -test for at least one currency, instead of exactly one
973f634c is described below

commit 973f634c5e2a2d905a97c052a223dd1bcf52ce8a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Sep 18 11:13:47 2022 +0200

    -test for at least one currency, instead of exactly one
---
 src/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
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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]