diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-21 17:32:18 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-21 17:32:18 +0200 |
commit | 245a7eb5b63bdc18ab1b41738d5ba12884afc7e0 (patch) | |
tree | b315216c740c9de6e14167ecb2928e435853ad01 /src/testing/testing_api_cmd_post_products.c | |
parent | 0eee3574dcb7bf1971a2e106f666caa41f8589f3 (diff) | |
download | merchant-245a7eb5b63bdc18ab1b41738d5ba12884afc7e0.tar.gz merchant-245a7eb5b63bdc18ab1b41738d5ba12884afc7e0.tar.bz2 merchant-245a7eb5b63bdc18ab1b41738d5ba12884afc7e0.zip |
-fix test regressions
Diffstat (limited to 'src/testing/testing_api_cmd_post_products.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_products.c | 6 |
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, |