summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-21 00:23:25 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-21 00:23:25 +0200
commit0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9 (patch)
tree7dae1a13fece1711d6cc03fbc7e343e671a356b0 /src
parente9f29d84b6993d51e352d505042f948e8be00a59 (diff)
downloadmerchant-0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9.tar.gz
merchant-0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9.tar.bz2
merchant-0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9.zip
-fix product ID in patch operation
Diffstat (limited to 'src')
-rwxr-xr-xsrc/testing/test_merchant_product_creation.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/test_merchant_product_creation.sh b/src/testing/test_merchant_product_creation.sh
index defbcb37..e089dcb8 100755
--- a/src/testing/test_merchant_product_creation.sh
+++ b/src/testing/test_merchant_product_creation.sh
@@ -147,7 +147,7 @@ echo -n "Updating product..."
PRODUCT_DATA=$(echo $MANAGED_PRODUCT_TEMPLATE | jq 'del(.product_id) | . + {"total_stock": (.total_stock + 2) }')
-STATUS=$(curl 'http://localhost:9966/instances/default/private/products/2' -X PATCH \
+STATUS=$(curl 'http://localhost:9966/instances/default/private/products/3' -X PATCH \
-d "$PRODUCT_DATA" \
-w "%{http_code}" -s -o $LAST_RESPONSE)