[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -fix expected status code
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -fix expected status code |
Date: |
Fri, 30 Jul 2021 21:11:36 +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 80cff233 -fix expected status code
80cff233 is described below
commit 80cff233703977adcb8a8f16a3a78b91916cfb87
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jul 30 21:11:33 2021 +0200
-fix expected status code
---
src/testing/test_merchant_order_creation.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/testing/test_merchant_order_creation.sh
b/src/testing/test_merchant_order_creation.sh
index 3fa1459c..ec929c2e 100755
--- a/src/testing/test_merchant_order_creation.sh
+++ b/src/testing/test_merchant_order_creation.sh
@@ -241,9 +241,9 @@ STATUS=$(curl
'http://localhost:9966/instances/default/private/products' \
-d '{"product_id":"1","description":"product with id 1 and price
:15","price":"USD:15","total_stock":1,"description_i18n":{},"unit":"","image":"","taxes":[],"address":{},"next_restock":{"t_ms":"never"}}'
\
-w "%{http_code}" -s -o /dev/null)
-if [ "$STATUS" != "409" ]
+if [ "$STATUS" != "400" ]
then
- echo 'should respond conflict, product price is in another currency. got:'
$STATUS
+ echo 'should respond bad request, product price is in another currency.
got:' $STATUS
exit 1
fi
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.