summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_post_products.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_post_products.c')
-rw-r--r--src/testing/testing_api_cmd_post_products.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_post_products.c b/src/testing/testing_api_cmd_post_products.c
index 5d1abb48..8216318f 100644
--- a/src/testing/testing_api_cmd_post_products.c
+++ b/src/testing/testing_api_cmd_post_products.c
@@ -269,6 +269,10 @@ TALER_TESTING_cmd_merchant_post_products2 (
{
struct PostProductsState *pis;
+ GNUNET_assert ((NULL == taxes) ||
+ json_is_array (taxes));
+ GNUNET_assert ((NULL == description_i18n) ||
+ json_is_object (description_i18n));
pis = GNUNET_new (struct PostProductsState);
pis->merchant_url = merchant_url;
pis->product_id = product_id;
@@ -315,7 +319,7 @@ TALER_TESTING_cmd_merchant_post_products (const char *label,
"test-unit",
price,
"",
- json_object (),
+ json_array (),
4,
json_pack ("{s:s}", "street", "my street"),
GNUNET_TIME_UNIT_ZERO_ABS,