From 245a7eb5b63bdc18ab1b41738d5ba12884afc7e0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 21 Jul 2021 17:32:18 +0200 Subject: -fix test regressions --- src/testing/testing_api_cmd_post_products.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/testing/testing_api_cmd_post_products.c') 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, -- cgit v1.2.3