aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_merchant_order_creation.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-30 21:11:33 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-30 21:11:33 +0200
commit80cff233703977adcb8a8f16a3a78b91916cfb87 (patch)
treef0330a69e5ff96587e890d80a18d7fb11ca04341 /src/testing/test_merchant_order_creation.sh
parentb2dab8c5d1597ff84c16b2c0d641808a180f7fb3 (diff)
-fix expected status code
Diffstat (limited to 'src/testing/test_merchant_order_creation.sh')
-rwxr-xr-xsrc/testing/test_merchant_order_creation.sh4
1 files 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